[comp.windows.x.motif] OptionMenu and current selection

osvaldo@sos.com (Osvaldo Gold) (04/27/91)

Is there a way to change the current selection of an OptionMenu after
it is created?

If I create an option menu with the following sequence

   ac = 0;
   XtSetArg (al[ac], XmNsubMenuId, menu_pane);  ac++;
   XtSetArg (al[ac], XmNmenuHistory, option3);  ac++;
   opt_men = XmCreateOptionMenu (parent, "optionmenu", al, ac);
   XtManageChild (opt_men);

the OptionMenu gets created and correctly displays option3.  However, if
I later do a 

   ac = 0;
   XtSetArg (al[ac], XmNmenuHistory, option4);  ac++;
   XtSetValues(opt_men, al, ac);

I would expect the OptionMenu to now display option4 but it doesn't.

Am I doing anything wrong?  If this is a Motif bug, is it fixed in 1.1?
I'm running on a DECstation 3100, X11R3, Motif 1.0.

Thanks thanks thanks thanks ...

-- 
-----------------------------------------------------------------
Osvaldo Gold                       osvaldo@sos.com
                         ...[uunet]!uupsi!sos.com!osvaldo
These opinions are only my own.  SOS has nothing to do with them.