formBasicControls.form 2.0 KB

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