Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!bellcore!jello!aw From: aw@jello.bae.bellcore.com (Andrew Wason) Newsgroups: comp.windows.x Subject: Re: HELP !!! Message-ID: <1991Apr17.153125.1593@bellcore.bellcore.com> Date: 17 Apr 91 15:31:25 GMT References: <1991Apr15.215153.23046@metro.ucc.su.OZ.AU> Sender: usenet@bellcore.bellcore.com (Poster of News) Reply-To: aw@bae.bellcore.com Organization: Bell Communications Research Lines: 36 In article <1991Apr15.215153.23046@metro.ucc.su.OZ.AU>, ta_k@maths.su.oz.au (Katya Ta) writes: > > What I want to do is to have a menu bar and when > the user chooses an option the main interface (not menu bar) > should change correspondingly. For example the user chooses > letter format so the main area should display the fields for this > options and when the user chooses fax format this should be > displayed. > Should I unmap/ map the relevant widgets? Or is there > another way? Try using the XcuDeck widget from the Xcu widget set (available on the contrib tape, I think). The Deck widget manages a set of children like a deck of cards - only one child is on top of the deck at a time. In your case, you could give the Deck two children - "letter" and "fax". These would each be Composites laying out their children in the layout you need for that format. Then when the "fax" menu item is selected, you tell the Deck to raise its "fax" child to the top, when "letter" is selected, tell it to raise "letter". Deck makes itself as big as its biggest child, so there is no nasty flashing or resizing when you pop children to the top. I have used XcuDeck with Motif widgets, it should work fine with Athena too. Andrew _______________________________________________________________________________ Andrew Wason Bell Communications Research aw@bae.bellcore.com Piscataway, NJ bellcore!bae!aw