custom buttons

Wouter wouter.abraham at pi.be
Thu Feb 26 20:53:08 EST 2004


On 26 Feb 2004, at 23:57, use-revolution-request at lists.runrev.com wrote:

> Message: 10
> Date: Thu, 26 Feb 2004 14:52:05 -0800
> From: Ken Norris <pixelbird at interisland.net>
> Subject: Re: custom buttons
> To: <use-revolution at lists.runrev.com>
> Message-ID: <BC63B895.52F2%pixelbird at interisland.net>
> Content-Type: text/plain; charset="US-ASCII"
>
> Hello Wouter,
>
>> Date: Thu, 26 Feb 2004 14:40:15 +0100
>> From: Wouter <wouter.abraham at pi.be>
>> Subject: Re: custom buttons
>
>> Another possible buttonscript.
>>
>> local lOldLoc   ### or make custom properties upPos and downPos
>> on mousedown
>> put the loc of me into lOldLoc
> .....etc.
> ------------
> Just so you know, the script you presented works, but as regards 
> buttons, is
> 26 lines of code that does exactly the same thing as setting img id's 
> in the
> Icons and Borders property.
>
> ...But you might want to use it for switching graphic images.
>
> Ken N.
>
>

Hi Ken,

Yep it works and even makes the button react like the "normal" buttons 
do.
Meaning normal buttons change to "up"  and "down" states when the mouse 
leaves
or reenters the rect of the button when the mouse button is kept down.
The other code does not. But may be this is intentional and it is all 
up to the taste of
the developer.
Thanks for mentioning though.

Greetings,
WA




More information about the use-livecode mailing list