home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!gatech!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
- From: jncoco@jumbo.read.tasc.COM (Joe Coco)
- Subject: Re: Double Click in a window (Motif Drawing Area)
- Message-ID: <9207202111.AA02327@jumbo.Read.TASC.COM>
- Sender: daemon@athena.mit.edu (Mr Background)
- Organization: The Internet
- Date: Mon, 20 Jul 1992 21:11:24 GMT
- Lines: 18
-
- > Is there a way to detect a double click mouse event in a window (I need it
- > inside a Motif Drawing Area, but it shouldn't make a difference). Currently,
- > I am using time functions to make it "wait" for a time equal to the double
- > click interval and detect a second ButtonPress after the first one (inside
- > the Drawing Area callback). There's gotta be an easier way !
- >
- > --Panos Nikoulis
- > Project Pilgrim
- > UMass, Amherst
-
- Sure is, use the Xt Translation mechanism and Action procedures. This
- works in Widgets, not Windows, but it seems like it is what you want
- to do. The translation you will probably want to use is <Btn?Up>(2+),
- where "?" is 1, 2, 3, etc. Refer to the O'Reilly Xt Programming Manual,
- Volume 4.
-
- Joseph Coco
- TASC
-