formBasicControls.form 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. form basicControls
  2. {
  3. layout = LAYOUT_ABSOLUTE
  4. size = 600, 600
  5. batchingEnabled = false
  6. label title
  7. {
  8. position = 185, 10
  9. text = Title Label
  10. fontSize = 32
  11. }
  12. button testButton
  13. {
  14. position = 20, 110
  15. text = This is a button
  16. }
  17. checkbox testCheckbox
  18. {
  19. position = 20, 220
  20. text = This is a checkbox.
  21. }
  22. slider testSlider
  23. {
  24. position = 25, 315
  25. width = 190
  26. orientation = HORIZONTAL
  27. min = -100
  28. max = 100
  29. value = 0
  30. //step = 5
  31. text = This is a slider.
  32. valueTextVisible = true
  33. }
  34. label textBoxLabel
  35. {
  36. position = 25, 390
  37. size = 200, 60
  38. text = This is a label:
  39. }
  40. textBox testTextBox
  41. {
  42. position = 20, 430
  43. size = 250, 80
  44. text = This is a text box.
  45. }
  46. textBox testPasswordTextBox
  47. {
  48. position = 20, 520
  49. width = 250
  50. text = PASSWORD
  51. inputMode = PASSWORD
  52. }
  53. container radioButtonContainer
  54. {
  55. layout = LAYOUT_VERTICAL
  56. position = 330, 100
  57. radioButton choice1
  58. {
  59. text = Radio button 1.
  60. group = testRadio
  61. selected = true
  62. }
  63. radioButton choice2 : choice1
  64. {
  65. text = Radio button 2.
  66. selected = false
  67. }
  68. radioButton choice3 : choice2
  69. {
  70. text = Radio button 3.
  71. }
  72. }
  73. image testImage
  74. {
  75. alignment = ALIGN_BOTTOM_RIGHT
  76. path = res/png/logo.png
  77. }
  78. container testPanel
  79. {
  80. style = Panel
  81. margin
  82. {
  83. right = 75
  84. bottom = 170
  85. }
  86. alignment = ALIGN_BOTTOM_RIGHT
  87. label
  88. {
  89. size = 200, 100
  90. text = Style: Panel Alignment: bottom-right Right margin: 50 Bottom margin: 100
  91. textAlignment = ALIGN_VCENTER_HCENTER
  92. }
  93. }
  94. }