CLIM mail archive


How to deal with a 1-button mouse?

I think this question was debated once.  Could some
MCL hackers out there please give some advice.  Thanks.

jeff morrill

  Date: Sun, 26 Sep 93 12:25:12 -0500
  From: "Sheldon S. Ball" <>
  There remain a few unresolved issues in porting scigraph to MCL 2.0/CLIM 1.1.
  One of the is mouse clicks.
  How can I modify :right & :middle to accept shift/mouse gesture &
  control/mouse gesture? Macintosh has only 1 mouse button.
  I tried the following modification to dwim:present.lisp without success:
    (clim:define-gesture-name :left :button :left)
    (clim:define-gesture-name :middle :button :left :shifts (:control))
    (clim:define-gesture-name :middle :button :middle)
    (clim:define-gesture-name :right :button :left :shifts (:shift))
    (clim:define-gesture-name :right :button :right))
  When the :shift or :control keys are depressed, the 
  L: Edit Graph Borders & Label...; R: Menu.
  in the lower left of the window produced by (make-demo-frame) 
  dissapears. The mouse click does not ellicit any action when the
  :shift or :control keys are depressed. This is true whether or not
  the above modification was made.
  Any suggestions?
  Thanks, Sheldon


Main Index | Thread Index