home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!cwi.nl!huub
- From: huub@cwi.nl (Huub Bakker)
- Newsgroups: comp.windows.x.motif
- Subject: xmCascadeButtonWidget problem
- Keywords: dynamic pulldown menu's
- Message-ID: <8537@charon.cwi.nl>
- Date: 6 Jan 93 15:40:38 GMT
- Sender: news@cwi.nl
- Reply-To: Huub.Bakker@cwi.nl
- Organization: CWI, Centre for Mathematics & Computer Science
- Lines: 36
-
- Hello world,
-
- I want to make 'dynamic' pulldowm menus in my application. My application is a
- User Interface Manager of a programming environment generator which resides in
- another process.
- When the user clicks on a dynamic pulldown menu, the application has to ask
- the programming-environment-generator-process what the content of the menu
- will be. I've implemented the pulldown-menus using a CascadeButtonWidget and
- the XmCreatePulldownMenu function.
-
- The first thing I've tried is to use the XmNcascadingCallback of the cascade
- widget to do the communication and to change the content of the pulldown menu.
- But something very strange happens: it looks like the X-server being blocked.
- I can't type in any character in an xterm, only the window manager is still
- working.
-
- Then I tried to use an EventHandler for the ButtonPressMask on the cascade
- widget. The same thing happened but now also the windowmanager is not anymore
- usable.
-
- Because the whole thing works fine for PushButtonWidgets instead of
- CascadeButtonWidget I'm beginning to worry for a bug in the
- CascadeButtonWidget software?
-
- Am I doing anything wrong? Does anyone out there has a solution?
-
-
- Thanks in advance,
-
- Greetings, Huub.
-
- --
- CWI, P.O. Box 4079 Huub Bakker (huub@cwi.nl)
- 1009 AB Amsterdam
- The Netherlands
- Tel. 31 20 5924080
-