swarm-support
[Top][All Lists]
Advanced

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

Sorry for the Graphics/control panel problems


From: Martina Schretzenmayr
Subject: Sorry for the Graphics/control panel problems
Date: Fri, 18 Apr 1997 16:53:12 +0200

>> I wondered about this "probing the bugs with a mouse clicks" too. As I
>> noticed by reading the code, there are no parameters behind X: and Y:.
>>
>> [worldRaster setButton: ButtonRight Client: heatbugDisplay Message:
>> M(makeProbeAtX:Y:)];
>
>This is not the actual message call. M() is a macro for @selector() which
>takes the name of a message and returns a selector for it, the arguments
>are added when an actual button-click occurs (in Raster.m):
>
>==========================================================================
>
>  -handleButton: (int) n X: (int) x Y: (int) y {
>    id c = 0;
>    SEL sel = 0;
>    switch(n) {
>      case 1: c = button1Client; sel = button1Sel; break;
>      case 2: c = button2Client; sel = button2Sel; break;
>      case 3: c = button3Client; sel = button3Sel; break;
>      default: raiseEvent(SourceMessage, "Button %d out of range.\n");
>    }
>
>    if (c && sel)
>------>   [c perform: sel with: (void *) x with: (void *) y]; <------
>    return self;
>  }
>
>==========================================================================
>
>That's the theory, anyway...
>
>Manor.


Tried again (Chris Langton's instructions) and succeeded. Sorry.


Martina Schretzenmayr


------------------------------------------------------------------------------

Martina Schretzenmayr
Dipl.-Geogr.
Raumplanerin ETH/NDS
Institut fuer Orts-, Regional und Landesplanung (ORL-Institut)/
Institute for Local, Regional and National Planning
Eidgenoessische Technische Hochschule Zuerich /
Swiss Federal Institute of Technology Zurich
ETH Hoenggerberg HIL H 41.3
CH - 8093 Zuerich

Tel.: ++41 - 1 - 633 29 47
Fax:  ++41 - 1 - 633 10 98
e-mail: address@hidden
HomePage: http://www.orl.arch.ethz.ch/~Schretzenmayr/index.html



                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]