 |
|
BaselScript |
Beschreibung
Tile = radiobutton
Taste zum Auswählen eines von mehreren Werten
Beispiel:
scene=1 name="radiobutton"
section init
draw form
end section
---------------------------------------------
form
tile=property x=10 style = italic
tile=text name=#txt1 y=40 w=790 h=180 size=40 text="radiobuttons - select music" color=gravity=left
tile=property w=380 h=180
tile=radiobutton name = #rb1 section = rb1 x = 10 y = 160 text = "classical" color = #0000FF size =40
tile=radiobutton name = #rb2 section = rb2 x = 10 y = 260 text = "waltzes" color = #FFFFFF size =40
tile=radiobutton name = #rb3 section = rb3 x = 10 y = 360 text = "pop" color = #FF0000 size =40
end form
-----------------------------------
section rb1
#c = "selected: classical"
section section
-----------------------------------
section rb2
#c ="selected: waltzes"
end section
-----------------------------------
section rb3
#c = "selected: pop"
end section
end scene
Wenn die erste Taste ausgewählt ist, wird die Sektion rb1 aufgerufen usw.
Wenn eine Taste ausgewählt ist, werden die anderen beiden zurückgesetzt.