home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
- From: jeffc@magician.larc.nasa.gov (Jeff Cleveland)
- Newsgroups: fj.mail-lists.x-window
- Subject: Re: JAM from JYACC - mouse buttons ?
- Message-ID: <1992Dec25.004339.24556@sm.sony.co.jp>
- Date: 25 Dec 92 00:43:39 GMT
- Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
- Distribution: fj
- Organization: NASA Langley Research Center, Hampton, VA USA
- Lines: 53
- Approved: michael@sm.sony.co.jp
-
- Date: 24 Dec 92 16:13:25 GMT
- Message-Id: <1hcnj5INNcep@rave.larc.nasa.gov>
- Newsgroups: comp.sys.sun.apps,comp.windows.open-look,comp.windows.x
- References: <izeek.725202592@techunix.technion.ac.il>
- Sender: xpert-request@expo.lcs.mit.edu
-
- In article <izeek.725202592@techunix.technion.ac.il>, izeek@techunix.technion.ac.il (Ilan Aisic) writes:
- > I'm posting this on behalf of a friend who is using JAM on top of OpenWindows
- > on a Sun SPARC to create an application.
- > My friend complains that she can only program JAM to accept left button (the
- > SELECT button) from the mouse. If she presses the right mouse button (MENU),
- > her application displays the default OW menu that she doesn't want.
- > In fact, she would like to assign the JAM "Help" function to the middle or
- > right mouse button instead of a keyboard combination as suggested.
- > The solution if any, should not alter the OpenWindows behavior (xmodmap).
- >
- > If there are JAM experts out there, I also have another question:
- > How do I get from a JAM application some Xlib variables like the
- > Display pointer, the Window id, etc. If someone wants to add some
- > X - extentions to a JAM application how he/she go about it?
- >
-
- I have done a lot of X11/Motif customizing of JAM.
-
- In order to add widgets, you need the additional JAM/pi product. It contains
- a routine called
-
- sm_drawingarea()
-
- that returns the Widget of the current screen. There should be a similar call
- in the Open Windows version. Once you have that widget, you can use the myriad
- of Xt conversion routines to get the values you need.
-
- for example:
- widget=sm_drawingarea();
- display=XtDisplay( widget ); /* get the display used for this widget. */
- screen=XtScreen( widget ); /* get the screen used for this widget. */
-
- In order to change the mouse button, I think you need to change the definition
- for the button in the X resource file for jam (XJam). It is usually located
- in /usr/lib/X11/app-defaults. There you can assign operations to the mouse
- buttons. (Again, you need the JAM/pi product.)
-
- If you don't have JAM\pi, then you might be able to alter the session maanger
- to watch for button down events, but this would be a lot of work.
-
-
-
- Jeff Cleveland
- Unisys Corporation
- NASA Langley Research Center
- Hampton Virginia
- jeffc@magician.larc.nasa.gov
-