Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!bloom-beacon!ford-scf14!carol From: carol@ford-scf14 (Carol Toomer-Keay) Newsgroups: comp.windows.x Subject: (none) Message-ID: <8907212039.AA08707@ford-scf14.sun.com> Date: 21 Jul 89 20:39:40 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 46 Hi, I'm new to the newsgroup and haven't been too successful in getting an answer to my question. Could someone please respond just to let me know the message got there! (thanks!) I'm developing a user interface for a flight simulator and need a popup menu with additional cascading menus. Let me explain what I mean by cascading menus in case they're called something else in the real world! The idea is to popup a menu and allow the user to drag the mouse down the menu to make a selection. Moving the mouse to the far right edge of the last menu selection will cause another menu to popup (a submenu). I have been trying to get this second menu to popup just by entering the last menu selection. It briefly appears on the screen and then the program crashes. It appears to be crashing when a LeaveNotify event is generated by the last menu pane. A call to XWarpPointer is called to warp the pointer to the submenu. When the pointer leaves the last menu pane (using XWarpPointer) and warps to the submenu a leave notify event is generated. By the time the event arrives, the first menu is unmapped and an error occurs. I don't have access to any toolkits on the machine I'm using (a Megatek workstation) so the code is being written using XLib. I only have two more weeks to finish this interface so I need an answer ASAP. HELP! Does anyone have an XLib program that successfully produces these menus? I'd like one that will allow the user to easily customize the menus if possible. But I'll take anything that works! Also, there is a bug in the code somewhere that occurs when the first menu is created. If the user presses the button and waits for the menu to appear on the screen, all is well. If the button is released before the menu is completely drawn, the program crashes. I've asked a few people about this and was told it could be a hardware problem and/or a software problem. Any ideas?? (Sorry this is so long....) Many Thanks, Carol Toomer Keay Ford Aerospace Corporation carol@scf1.fac.ford.com 1260 Crossman Avenue (408) 743-3945 Sunnyvale, CA 94089 to work, perchance to compile, ay there's the rub... whether tis nobler to program the ups and downs of XLib, or take a mouse against a C of menus and by deleting, end them!