custom buttons

Ken Norris pixelbird at interisland.net
Thu Feb 26 00:34:18 EST 2004


Hi Thomas,

> Date: Tue, 24 Feb 2004 23:12:21 -0500
> From: Thomas McGrath III <3mcgrath at adelphia.net>
> Subject: custom buttons
 
> Does anyone know if there is a custom button creator for live use
> within rev?
> I can draw my own in Photoshop. What I need is actually to combine two
> graphics from within rev and then it to act like a real button.
> One graphic is a special looking button and the other is an icon to go
> in it then When pushed it needs to push down.
-----------
<http://www.altuit.com/webs/altuit2/RunRev/Tutorials.htm>

While there (or not) you might want to look at:
<http://www.buttongadget.com/buttongadget/default.htm>

...plus I'll send you one that does an additional mouseEnter hilite if you
like.

Another uncommon option:

When I first got Rev I had a keyboard I had made in HC using Uli Kusterer's
xDraw. It was 2 fullscreen picts, one of 'up' state keys and one of 'down'
state keys. The actual buttons were all transparent, each using it's rect to
'see' the matching rect of the 'down' state pict, which existed only in RAM
until the external called the matching rect of it.

In Rev I was shown how to use a group to accomplish a similar task. The
problems came with special buttons that had to remain in 'down' state until
another button was clicked, like 'shift'

Lemme dig that up and see if any of it still works (I goofed around with it
awhile then sort of abandoned it).

OK, looks like the letter keys (buttons) work. The left shift key is goofed
up and the speech key turns on speech but doesn't stay lit. The CapsLock key
appears to work fine, however. None of the function keys 'function' of
course, and some of the buttons are causing a clone to appear in the middle,
which I don't recall happening before.

Anyway, the function you're looking for is there, albeit uncommented.

If you'd like to see those two things, I'd be happy to send them over. Lemme
know...

Ken N.



More information about the use-livecode mailing list