HELP! RadioBoxes not working!

265

I am using Motif on a Linux platform and have a set of RadioBoxes (mutually exclusive) where one is always selected.
If the user changes the radio box selection (by selecting another toggle button), everything works great.
If the user presses a button on the screen defined to be a "RESET" button, I reset the old settings programmatically and everything appears ok but it isn`t. When the user tries to reselect the toggle button they last selected (which is now unselected since the program reset to another toggle button), the toggle button they try to select looks like it isn`t selected but refuses to become selected. It is as though the toggle button still thinks it is set even though my program changed it.
I looked through the Motif FAQs and see where Kenton Lee recommends setting the XmNmenuHistory resource for the radio box to the button I want to be selected so I have done this. I also use XmToggleButtonSetState(w, True, True) to set the new toggle button to be selected and, as I said, it "appears" to be selected. The old toggle button still thinks *it* is the one selected though and won`t let the user select it.
The only way to select the unselected toggle button is to reselect the one that is selected, then select the unselected one but that is kludgy and I can`t deliver it like that.
Does anyone have any suggestions?
THANKS VERY MUCH!
Julie
‹ Sorry, I redo my request for help.... Cannot create Motif or X11 instance ›

Tue, 08/07/2012 - 15:06
#1
17 posts / 0 new
Last post
90
 
Tue, 08/07/2012 - 15:07
54
 
Tue, 08/07/2012 - 15:08
50
 
Tue, 08/07/2012 - 15:09
35
 
Tue, 08/07/2012 - 15:08
25
 
Tue, 08/07/2012 - 15:09
14
 
Tue, 08/07/2012 - 15:07
11
 
Tue, 08/07/2012 - 15:08
8
 
Tue, 08/07/2012 - 15:08
5
 
Tue, 08/07/2012 - 15:07
-19
 
Tue, 08/07/2012 - 15:07
-31
Tue, 08/07/2012 - 15:09
-33
 
Tue, 08/07/2012 - 15:07
-36
 
Tue, 08/07/2012 - 15:07
-52
 
Tue, 08/07/2012 - 15:08
-61
 
Tue, 08/07/2012 - 15:08
-69
 
Tue, 08/07/2012 - 15:08