Using menuHistory for Optionmenu selections

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

Questions about motif? Contact us

1 post / 0 new
Using menuHistory for Optionmenu selections

Submitted by Anonymous on Thu, 01/03/2002 - 15:59.

I need some help with setting options in an option menu. I have a dialog box with a bunch of inputs, some of which are textfields, and some of which I`ve defined as optionmenus.

Now, this dialog box is displayed upon selection of a couple of different buttons. And when the dialog box is displayed, I want to be able to set values to the optionmenu before the user sees it. When I first display the box, I can use the menuhistory attribute, and that works fine. However, when the box is brought up again, and I want to change the optionmenu value, I cannot do it with menuhistory. It seems like whatever value that optionmenu last had is still displayed (whether it was set by me using menuhistory, or selected by the user).

Am I doing something wrong? Or, is there a way to change the value of an optionMenu after it has already been created & managed??