Economy-x-Talk - Sample Scripts
Colour Hilites
The buttons on the left show a few different ways to use AddColor for hiliting buttons.
1) Standard colour hilite
2) Stay hilited after click
3) Standard colour hilite on click but stay hilited on doubleClick, click again to unhilite.
on mouseDown1
colorHilite the target,false,false
put "The hilite of" && name of me && "is still" && the result & "!"
end mouseDown1
on mouseDown2
global hilited
colorHilite the target,true,hilited
put the result into hilited
put "The hilite of" && name of me && "is" && hilited & numToChar(46)
end mouseDown2
on mouseDown3
addColor colorButton,cd,id of me,"26214,26214,13107",1
repeat until the mouse is up
--repeat while the mouse is down
if the mouseLoc is within the rect of me then
addColor colorButton,cd,id of me,"26214,26214,13107",1
else addColor colorButton,cd,id of me,"39321,39321,26214",1
end repeat
end mouseDown3
on mouseUp3
addColor colorButton,cd,id of me,"39321,39321,26214",1
-- the original button color
end mouseUp3
Keep this extensive resource of tutorials and samples on-line! Support RunRev.info!
| Yes, this script is useful. I make a donation and choose freely how much I want to donate on-line (PayPal). Click here if you want to make a donation in dollars. | This script has not (completely) solved my problem and I want Economy-x-Talk to take care of it. Let me contact you. |
Copyright©2002-2008 by Mark Schonewille, Nijmegen, the Netherlands. This web site is in no way affiliated with Runtime Revolution Ltd., but we do recommend the Revolution development platform.