If I have a radio button, how do I get the maximum value that can select? I was not able to find a way :-(
Printable View
If I have a radio button, how do I get the maximum value that can select? I was not able to find a way :-(
Use the "Texts" property. Each line that you write in that box will be a seperate radio button.
You can then select the one you want in the event editor by using the radio button condition on the object and typing the line number.
For example, at the start of frame I whant:
Var E = (maximum value of radio button X)
How is this possible?
I have not found the right text property for capturing the integer value :-(
If I have:
Global value E
radio button X (with 6 radio button selectable)
at the start of frame I whant the result:
Global value E = (max number of radio button in radio button X)
If I can not believe that, it would be useful to implement this possibility. :-|
I dont think you can set the number of radio buttons while MMF is running the application. As far as i'm aware you can only set it while you're editing the application.
If you feel up to it, you could make your own radio button style object out of active objects.
Thanks Nick,
but I think that if radio button is defined, it is also defined its number of radio, and at the start of the program should be possible to extract this information, although for the moment it does not seem possible in mmf2.
You could set the number of buttons to a high number like 20, and set them all to "" (blank). Then at run time set the ones you want to use to a certain text through the 'Set Radio Button > Change text" feature. I don't know if this would help you though.
Nick,
I do not want to change the number of radio in radio button with the program running, I just extract from radio button, the maximum number of radio containing, all here.
This is because I do not want to make mistakes when I go to count them. :-)
P.S.
I use a radio button similar to a cursor for select a number from 0 to n were n is the maximum radio of radio button.