scott@nbc1.ge.com (Scott Barman) (06/21/91)
In an application I am trying to modify, I have an Option Menu defined
in a UIL file that controls a Pulldown Menu of a list of items to choose
from when the user presses that button. It looks somewhat like:
object StationChoices : XmOptionMenu {
arguments { . . . };
controls {
XmPulldownMenu StationMenu;
};
};
object StationMenu : XmPulldownMenu {
controls {
XmPushbutton { . . . }
XmPushbutton { . . . }
XmPushbutton { . . . }
XmPushbutton { . . . }
XmPushbutton { . . . }
};
};
What I want to do is be able to offer a different list of a different
size (and uses a different callback) instead of the above StationMenu
at runtime based on the status of another option menu. So if I define:
object CityMenu : XmPulldownMenu {
controls {
XmPushbutton { . . . }
XmPushbutton { . . . }
XmPushbutton { . . . }
};
};
How do I tell the StationChoices option menu to control the CityMenu and
not StationMenu?
All assistance is appreciated!
Yes, I am an X11 and Motif programming novice, but I've been thrown into
the fire and I have to deal with it. Unless you feel this could be of
general interest, please email your suggestions (scott@nbc1.ge.com).
THANKS!!
--
scott barman | *** THIS SPACE FOR RENT ***
scott@nbc1.ge.com | (I could give a commercial for NBC, still the
(This does not represent any | #1 network in television, but that would not
opinions of NBC or affiliates) | fair to... never mind! :-)