davis%mauve@scrgwy.psi (Paul Davis) (10/14/88)
Reply-To: davis%blue@sdr.slb.com Organization: Schlumberger Cambridge Research Snail: PO Box 153, Cambridge CB3 0HG, England Phone: [+44] (0) 223 325282 Memo: To shatter tradition makes us *feel* free... Has anyone implemented anything like HyperCard's `tear-off' menus under X ? To explain - you popup the menu, and then `rip' it off the point at which it is invoked, move it to some convenient position on the screen and there it stays, available for further use without popping it up again. Alternatively, does anyone want to speculate on ways of achieving this ? Paul Davis davis%blue@sdr.slb.com [NO MATTER WHAT THE From: LINE SAYS!!]
joel@pyr.gatech.EDU (Joel Rives) (10/14/88)
Implementing "tear-off" menus shouldn't be all that difficult. In fact, I have been considering the idea for an application i am working on at the moment. The HP widget set for the X Toolkit provides a nice set of widgets to manage Popup menus. After a precursory look at this set, i concluded that the change would require some means of disabling the unmapping of the menu pane which is done by the menu manager. This could probably be accomplished by adding a flag to the resources for the menu pane, which would be checked by the by the menu manager. The problem becomes a little more complex when dealing with cascading menus. There's also the matter of what to do when the user's button or key events indicate that the whole popu menu structure is to be posted again. If you get around to implementing this, i'd appreciate knowing about it. Otherwise, i'll probably get around to it myself real soon. joel -- The thief Left it behind-- The moon at the window. -Ryokan