Toggle Button Question...

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Toggle Button Question...

Submitted by Anonymous on Wed, 01/22/2003 - 18:04.

I have two Toggle buttons that are Children of a RadioBox.
I have a routine that sets the Default to True. So basically one button is On and the other is Off.

Here is the problem...
Say On button is selected and then the user switches to another Simulation which has different defaults and for this Simulation the Default is Off. So I set the State of the Off button to true. Now I have two buttons that appear selected (the On button and the Off button).

I tried to set the state to False for both buttons and then set the Default value. This works except that if I attempt to select the un-selected option I can`t select it. I have to select the selected first and then the options work as expected. I also tried to use set value and got the same behavior.

Help Please... Thanks.
C. Lamb

 

 

Fri, 01/24/2003 - 23:16#1

ICS_support

Toggle Button Question...

Isn`t there some funky property on the XmRowColumn parent which is something like XmNradioAlwaysOne ? You should probably set this false while you are doing your own setting of values.