CLIM mail archive

[Prev][Next][Index][Thread]

Mac CLIM Questions



    Date: Tue, 25 Jun 91 11:38 PDT
    From: Richard Lamson <rsl@max-fleischer.sf.dialnet.ila.com>

	Date: Tue, 25 Jun 91 11:10:47 CDT
	From: Ian Flanigan <flan@informatics.wustl.edu>

	    My first question is: How do I simulate the Middle and Right mouse
	buttons?

    I don't know the answer to this yet, but will do some research on it
    this week.  You might wind up having to define commands on
    Control-"left" rather than on "middle".

CLIM on the Mac interprets double-clicks as "Right."  There is no mapping for
"Middle."  The right solution for you is for you to map the proper logical
gestures into the physical gestures that are appropriate for your configuration,
as in

(define-gesture-name :my-gesture :button :left :shifts (:control))
[see page 300 of the documentation]

and then define your translators on on the gesture :my-gesture.  Unfortunately,
CLIM's gesture-mapping mechanism doesn't recurse, so if you've defined my-gesture
as (:control :right) you can't later say that :right is (:meta :left) and have
my-gesture be (:control :meta :left).  Ordinarily, the DEFINE-GESTURE-NAME forms
will be among the few forms in your application code that will be environment
conditionalized.

0,,

References:

Main Index | Thread Index