[mcclim-devel] Gestures applicable to only one pane?

Andy Hefner ahefner at gmail.com
Thu Nov 13 17:57:02 UTC 2008


On Thu, Nov 13, 2008 at 11:44 AM, Nikolaus Demmel <demmeln at in.tum.de> wrote:
> I would like to define commands with gestures (or a gesture to
> command translator) where the gesture (:select) applies in only one
> specific pane. I want to specialise this command for T, so it would
> accept everything as input, which screws up the rest of my
> application... How can this be done?

Command gestures are implemented behind the scenes as presentation (to
command) translators. You can define these yourself explicitly, rather
than using the :gesture keyword in define-command. Doing so grants you
more flexibility, including the ability to define use the :tester
function to programatically decide the applicability of the
translator. In this way you can test the pane which the gesture was
received in.




More information about the mcclim-devel mailing list