Hi I have a card with 3 radio buttons. I want one of the buttons to be selected automatically as soon as my program is run. I tried selecting the default button option in the properties tab but it doesn't seem to do anything Can any help?
Thanks.
Radio Button selected by default
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Radio Button selected by default
Which ever one is selected when the app is saved to a stand alone should be the default when the app is run.
Re: Radio Button selected by default
Hi TubooBokBok,
I am sure you have GROUPED your radio buttons!
Then you can set and get "the hilitedbutton of grp XYZ", which is the number of the (target) button,
or "the hilitedbuttonname of grp XYZ", which is the NAME of the (target) button.
Example:
Now if you want to hilite the second button "radio2", you have 2 options:
...
set the hilitedbutton of grp "yourRadios" to 2
...
or
...
set the hilitedbuttonName of grp "yourRadios" to "radio2"
...
Both will hilite the second button "radio2", now choose what fits your situation
Best
Klaus
I am sure you have GROUPED your radio buttons!

Then you can set and get "the hilitedbutton of grp XYZ", which is the number of the (target) button,
or "the hilitedbuttonname of grp XYZ", which is the NAME of the (target) button.
Example:
Code: Select all
group "yourRadioButtons
button "radio1" ## Which is the FIRST button = 1 in the group
button "radio2" ## button # 2
button "radio3" ## button # 3
...
set the hilitedbutton of grp "yourRadios" to 2
...
or
...
set the hilitedbuttonName of grp "yourRadios" to "radio2"
...
Both will hilite the second button "radio2", now choose what fits your situation

Best
Klaus
Re: Radio Button selected by default
Yep, or this waymagice wrote:Which ever one is selected when the app is saved to a stand alone should be the default when the app is run.

-
- Posts: 19
- Joined: Wed Jun 18, 2014 7:23 pm
Re: Radio Button selected by default
Awesome thanks alot guys