home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / windows / x / motif / 5921 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.9 KB

  1. Path: sparky!uunet!stanford.edu!agate!ucbvax!eagle.smec.Sony.COM!dave
  2. From: dave@eagle.smec.Sony.COM (David Jarrin)
  3. Newsgroups: comp.windows.x.motif
  4. Subject: (none)
  5. Message-ID: <9208282109.AA06758@eagle.smec.sony.com>
  6. Date: 28 Aug 92 21:09:14 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: inet
  9. Organization: The Internet
  10. Lines: 42
  11.  
  12.  
  13. Greetings!
  14.  
  15. I would like to respectfully request your help with managing pulldown menus.
  16. My name is David and I am relatively new to Motif Programming. I am pretty
  17. familiar, however, with the general workings of "menus" in Motif. I am
  18. currently working with X11R5 and Motif 1.1.4 on a SUN-SPARC2.
  19.  
  20. First a little background: I create my pulldown menus in a structure like this,
  21.  
  22.      MenuBar ---> CascadeButton --> PulldownMenu --> PushButton(s)
  23.  
  24. Then I setup a "mnemonic" in my CascadeButton to allow me to "pulldown" the
  25. menu either with the mouse or by pressing some "Meta-?" key press combination.
  26.  
  27. This works great as long as my "Pointer" (i.e. my mouse pointer) remains 
  28. within the application window where the pulldown menu resides. As you probably
  29. already guessed, my problem arises when I move my mouse pointer to a different
  30. application window.
  31.  
  32. I have tried seting up translations and I am able to "XtManageChild" the menu,
  33. but all the wonderful functionality that the CascadeButton automatically 
  34. handles is gone (i.e. the behavior of my menu is very primitive and I would
  35. have to do quite a bit of coding to try to imitate what the CascadeButton does).
  36.  
  37. I also tried sending an XEvent to the CascadeButton to make it think that a 
  38. mouse click was executed, but I did not have much luck. Maybe I just did not 
  39. doit right. Sending X events is my weak point.
  40.  
  41. I tried a couple of other things but I got nowhere.
  42.  
  43. I would really appreciate it if you could give me some clue as to how to solve
  44. this "puzzle", and from now I thank you for taking the time to read this.
  45.  
  46. Regards!
  47.  
  48. David Jarrin
  49. SONY Medical Systems
  50. dave@smec.sony.com
  51.  
  52.  
  53.  
  54.