Graphic Gradient Button
A 28 pixels high push button. It behaves slightly differently from the standard push button, but it looks better. If you want, you can modify it to make its behaviour resemble that of the standard push button more closely. The download (see below) also contains a version with rounded corners.Here's an example of what it looks like (on Windows 8.1):
If you want, you can use multiple buttons together to create an alternative tab button. Adjust the mouseDown and mouseRelease handlers and remove the other mouse handlers to accomplish this.
Copy this button and paste it into your own stack. It will just work.This button is compatible with LiveCode 5.5 up to and including 7.
Usage
set the status["enabled"|"disabled"|"hilite"|"hilited] of grp x to true|falseset the textValue["html"|"utf8"|"utf16"|"unicode"|"text"|""] of \
grp x to myTextVariable
where myTextVariable can be a plain text string or a string encoded as html, utf8, or utf16.
Feel free to have a look at the script and discover how the gradient shows up correctly.
History
- 1.0.1 The status property has been replaced with the extStatus property, because RunRev decided to use the status property for something else. You can also safely change the width of the buttons.
- 1.0 First release.
Download
You need to log in to download this stack.
Login
You need to log in to download free LiveCode and other programming-related goodies. If you don't have an account yet, please register.copyright © 2005-2012 by Economy-x-Talk, Nijmegen, the Netherlands - no rights can be derived from this website - economy-x-talk bears no responsibility for linking and linked websites - disclaimers apply at all times