Advertisement
Guest User

Untitled

a guest
Apr 16th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. Widget w = parseML(q{
  2. VerticalLayout {
  3. id: main
  4. alignment: bottom
  5. layoutWidth: fill;layoutHeight: fill
  6. // background for window - tiled texture
  7. backgroundImageId: "tx_fabric.tiled"
  8. VerticalLayout {
  9. id: topBar
  10. margins: 0
  11. padding: 4
  12. layoutWidth: fill;layoutHeight: 60
  13.  
  14. HorizontalLayout {
  15. Button {
  16. id: btnRefMdlList;text: "Refresh"
  17. }
  18. }
  19.  
  20. }
  21. TableLayout {
  22. colCount: 2
  23. layoutWidth: fill;layoutHeight: fill
  24.  
  25. VerticalLayout {
  26. layoutWidth: 300;layoutHeight: fill
  27. margins: 10
  28. padding: 10
  29. backgroundColor: "#C0E0E070" // semitransparent yellow background
  30. // red bold text with size = 150% of base style size and font face Arial
  31. TextWidget {
  32. text: "Hello World example for DlangUI";textColor: "red";fontSize: 150% ;fontWeight: 800;fontFace: "Arial"
  33. }
  34. // arrange controls as form - table with two columns
  35. StringListWidget {
  36. id: modelList
  37. }
  38. HorizontalLayout {
  39. Button {
  40. id: btnOk;text: "Ok"
  41. }
  42. Button {
  43. id: btnCancel;text: "Cancel"
  44. }
  45. }
  46. }
  47. VerticalLayout {
  48. alignment: left
  49. layoutWidth: fill; layoutHeight: fill
  50. backgroundImageId: "tx_fabric.tiled"
  51. VerticalLayout {
  52. // child widget - will draw using OpenGL here
  53. id: glView
  54. margins: 20
  55. padding: 20
  56. layoutWidth: fill;layoutHeight: fill
  57. TextWidget {
  58. text: "Test";textColor: "red";fontSize: 150% ;fontWeight: 800;fontFace: "Helvetica"
  59. }
  60. }
  61. }
  62. }
  63. }
  64. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement