home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / motif / 8373 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.6 KB

  1. Path: sparky!uunet!mcsun!sun4nl!cwi.nl!huub
  2. From: huub@cwi.nl (Huub Bakker)
  3. Newsgroups: comp.windows.x.motif
  4. Subject: xmCascadeButtonWidget problem
  5. Keywords: dynamic pulldown menu's
  6. Message-ID: <8537@charon.cwi.nl>
  7. Date: 6 Jan 93 15:40:38 GMT
  8. Sender: news@cwi.nl
  9. Reply-To: Huub.Bakker@cwi.nl
  10. Organization: CWI, Centre for Mathematics & Computer Science
  11. Lines: 36
  12.  
  13. Hello world,
  14.  
  15. I want to make 'dynamic' pulldowm menus in my application. My application is a
  16. User Interface Manager of a programming environment generator which resides in
  17. another process. 
  18. When the user clicks on a dynamic pulldown menu, the application has to ask
  19. the programming-environment-generator-process what the content of the menu
  20. will be. I've implemented the pulldown-menus using a CascadeButtonWidget and
  21. the XmCreatePulldownMenu function.
  22.  
  23. The first thing I've tried is to  use the XmNcascadingCallback of the cascade
  24. widget to do the communication and to change the content of the pulldown menu.
  25. But something very strange happens: it looks like the X-server being blocked.
  26. I can't type in any character in an xterm, only the window manager is still
  27. working.
  28.  
  29. Then I tried to use an EventHandler for the ButtonPressMask on the cascade
  30. widget. The same thing happened but now also the windowmanager is not anymore
  31. usable.
  32.  
  33. Because the whole thing works fine for PushButtonWidgets instead of
  34. CascadeButtonWidget I'm beginning to worry for a bug in the
  35. CascadeButtonWidget software?
  36.  
  37. Am I doing anything wrong? Does anyone out there has a solution?
  38.  
  39.  
  40. Thanks in advance,
  41.  
  42. Greetings, Huub.
  43.  
  44. -- 
  45. CWI, P.O. Box 4079             Huub Bakker (huub@cwi.nl)
  46. 1009 AB Amsterdam
  47. The Netherlands
  48. Tel. 31 20 5924080
  49.