Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!malgudi!caen!spool.mu.edu!think.com!snorkelwacker.mit.edu!linus!philabs!nbc1!scott From: scott@nbc1.ge.com (Scott Barman) Newsgroups: comp.windows.x.motif Subject: Question on changing an XmOptionMenu at runtime Message-ID: <1991Jun20.192504.6177@nbc1.ge.com> Date: 20 Jun 91 19:25:04 GMT Reply-To: scott@nbc1.GE.COM (Scott Barman) Organization: National Broadcasting Company, Inc., New York Lines: 50 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! :-)