Subject: Re: Space methods
From: Deb Cleland (deborah.cleland@gmail.com)
Date: Fri Jul 30 2010 - 08:38:18 CEST
Thanks so much Christophe - Miko says it worked perfectly.
On 29 July 2010 22:05, Christophe LE PAGE <christophe.le_page@cirad.fr>wrote:
> Hi Miko,
>
>
>
> The method to specify what happens when left-clicking on the spatial grid
> (called #performRedButton:) is defined in the SpaceModel class.
>
> If you want to change it to something different from opening the VW
> inspector window, you have to modify this method in that class (i.e. to
> change cormas code).
>
>
>
> Nevertheless, there are two possibilities to set specific interactions by
> left-clicking on the spatial grid directly from the code of your model
> (without changing cormas code).
>
> When you left-click on the spatial grid and at the same time you press
> <Alt> or <Ctrl>, what will then happen can be specified in methods of your
> CormasModel class like exemplified below:
>
>
>
> *performAltRedButton:* aCell
>
> aCell flash *“or any other instruction”*
>
>
>
> *performCtrlRedButton:* aCell
>
> Dialog warn: ‘Hello Miko!’ *“or any other instruction”*
>
> * *
>
> HTH
>
> Clp
>
>
>
> *De :* owner-cormas@cirad.cirad.fr [mailto:owner-cormas@cirad.cirad.fr] *De
> la part de* Deb Cleland
> *Envoyé :* jeudi 29 juillet 2010 03:25
> *À :* Cormas
> *Objet :* Space methods
>
>
>
> Please see the following from Miko, best Deb
>
> Hi everyone,
>
> I’m working on a VW application and I need to change some of the behaviors
> that are inherently provided by Cormas. By any chance, does anyone know
> where I can find the method that instructs the space interface to open the
> VW inspector window when left-clicked? I’ve checked the SpaceInterface
> class, but I only found the method that’s for opening the inspector window
> when the openCormasModel is selected from the Tools menu. Are there other
> ways by which I can override this aside from changing the codes in Cormas?
>
> Thanks for any help!
> -Miko
>
>
>
>
>
>
> --
> Deborah Cleland
> PhD Student
> Fenner School of Environment and Society
> College of Medicine, Biology & Environment
> Room 2.05, Building 48a
> Australian National University
> Canberra, A.C.T. 0200
> p: +61 2 6125 8150
> m: (fil) +63 9 155 074 050
> (aus) +61 408 283 852
> e: deborah.cleland@anu.edu.au
>
> http://tinyurl.com/clelandFenner
>
> <<<- Is it worth a tree to print me?
>
> "Every morning I awake torn between a desire to save the world and an
> inclination to savor it. This makes it hard to plan the day." E.B. White
>
-- Deborah Cleland PhD Student Fenner School of Environment and Society College of Medicine, Biology & Environment Room 2.05, Building 48a Australian National University Canberra, A.C.T. 0200 p: +61 2 6125 8150 m: (fil) +63 9 155 074 050 (aus) +61 408 283 852 e: deborah.cleland@anu.edu.auhttp://tinyurl.com/clelandFenner
<<<- Is it worth a tree to print me?
"Every morning I awake torn between a desire to save the world and an inclination to savor it. This makes it hard to plan the day." E.B. White