formBasicControls.form 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. form basicControls
  2. {
  3. theme = res/common/default.theme
  4. layout = LAYOUT_ABSOLUTE
  5. style = basic
  6. size = 600, 600
  7. label title
  8. {
  9. style = underlined
  10. position = 185, 0
  11. size = 200, 50
  12. text = This is a label.
  13. }
  14. button testButton
  15. {
  16. style = buttonStyle
  17. position = 20, 80
  18. size = 200, 100
  19. text = This is a button.
  20. }
  21. checkbox testCheckbox
  22. {
  23. style = iconNoBorder
  24. position = 20, 220
  25. size = 200, 40
  26. text = This is a checkbox.
  27. }
  28. slider testSlider
  29. {
  30. style = topLeftNoBorder
  31. position = 25, 315
  32. size = 190, 60
  33. orientation = HORIZONTAL
  34. min = -100
  35. max = 100
  36. value = 0
  37. //step = 5
  38. text = This is a slider.
  39. valueTextVisible = true
  40. }
  41. label textBoxLabel
  42. {
  43. style = iconNoBorder
  44. position = 25, 400
  45. size = 200, 60
  46. text = Label:
  47. }
  48. textBox testTextBox
  49. {
  50. style = topLeftAlignedEntry
  51. position = 20, 450
  52. size = 250, 80
  53. text = This is a text box.
  54. }
  55. container radioButtonContainer
  56. {
  57. layout = LAYOUT_VERTICAL
  58. style = basic
  59. position = 330, 100
  60. size = 200, 140
  61. radioButton choice1
  62. {
  63. style = iconNoBorder
  64. text = Radio button 1.
  65. group = testRadio
  66. //position = 350, 80
  67. size = 180, 40
  68. selected = true
  69. }
  70. radioButton choice2 : choice1
  71. {
  72. text = Radio button 2.
  73. //position = 350, 130
  74. selected = false
  75. }
  76. radioButton choice3 : choice2
  77. {
  78. text = Radio button 3.
  79. //position = 350, 180
  80. }
  81. }
  82. image testImage
  83. {
  84. position = 300, 250
  85. style = basic
  86. size = 256, 256
  87. path = res/png/box-diffuse.png
  88. //srcRegion = 20, 20, 100, 100
  89. //dstRegion = 20, 20, 100, 100
  90. }
  91. button alignedButton
  92. {
  93. margin
  94. {
  95. right = 50
  96. bottom = 100
  97. }
  98. style = buttonStyle
  99. alignment = ALIGN_BOTTOM_RIGHT
  100. size = 200, 100
  101. text = Alignment: bottom-right. Right margin: 50. Bottom margin: 100.
  102. }
  103. }