home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!agate!ucbvax!eagle.smec.Sony.COM!dave
- From: dave@eagle.smec.Sony.COM (David Jarrin)
- Newsgroups: comp.windows.x.motif
- Subject: (none)
- Message-ID: <9208282109.AA06758@eagle.smec.sony.com>
- Date: 28 Aug 92 21:09:14 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: inet
- Organization: The Internet
- Lines: 42
-
-
- Greetings!
-
- I would like to respectfully request your help with managing pulldown menus.
- My name is David and I am relatively new to Motif Programming. I am pretty
- familiar, however, with the general workings of "menus" in Motif. I am
- currently working with X11R5 and Motif 1.1.4 on a SUN-SPARC2.
-
- First a little background: I create my pulldown menus in a structure like this,
-
- MenuBar ---> CascadeButton --> PulldownMenu --> PushButton(s)
-
- Then I setup a "mnemonic" in my CascadeButton to allow me to "pulldown" the
- menu either with the mouse or by pressing some "Meta-?" key press combination.
-
- This works great as long as my "Pointer" (i.e. my mouse pointer) remains
- within the application window where the pulldown menu resides. As you probably
- already guessed, my problem arises when I move my mouse pointer to a different
- application window.
-
- I have tried seting up translations and I am able to "XtManageChild" the menu,
- but all the wonderful functionality that the CascadeButton automatically
- handles is gone (i.e. the behavior of my menu is very primitive and I would
- have to do quite a bit of coding to try to imitate what the CascadeButton does).
-
- I also tried sending an XEvent to the CascadeButton to make it think that a
- mouse click was executed, but I did not have much luck. Maybe I just did not
- doit right. Sending X events is my weak point.
-
- I tried a couple of other things but I got nowhere.
-
- I would really appreciate it if you could give me some clue as to how to solve
- this "puzzle", and from now I thank you for taking the time to read this.
-
- Regards!
-
- David Jarrin
- SONY Medical Systems
- dave@smec.sony.com
-
-
-
-