11-11-2010 01:22 AM
I was trying to change the default value of a radio button in a panel from Off to On. The panel of radio button will appear after clicking a command button in main panel. But when i excute the program and the panel with radio button appear than it is always showing Off condition though default value i set it On.
I was thinking only in the UIR if i make default value of default from OFF to On, it will work. But it does not. Could any one help me out.
Thanks
arocon
11-11-2010 02:05 AM
Strange behaviour you are seeing!
A radio button (the one in Toggle Button palette, not a toolbox radio group control) should always honour the default value (set in "Initial state" in control properties in the UIR editor), provided you have saved the UIR with the button set in the proper state and you are not changing it programmatically.
Can you double-check the panel you are using in the UIR editor? If the final application is on another disk or another folder may it be hat you have not copied the final UIR to the correct folder?
If all is correct, maybe you could reduce your project to the minimum possible that shows this behaviour and post is here?
11-11-2010 03:23 AM - edited 11-11-2010 03:23 AM
Why don't you set the control value before displaying the panel? Let the default value be whatever it is.