Set the Opacity of a Button Background

Sannyasin Brahmanathaswami brahma at hindu.org
Wed Mar 2 17:57:57 EST 2016


@ Scott

Thank you.


Actually all these other methods have their use cases. Yes, am familiar with using other controls as "buttons" anything with a mouseUp script will do the job in 80% of the cases.

BR


On March 1, 2016 at 11:26:57 AM, Scott Rossi (scott at tactilemedia.com<mailto:scott at tactilemedia.com>) wrote:

Another option similar to Randy's is to create an image tile -- for
example, a 48x48 white PNG that's 50% opaque -- and assign this as the
backPattern of the button. Using this method you can scale the button to
any size and the translucency will fill accordingly. You can also assign
a separate icon if desired.

Unless you REALLY need the properties of a button control, you can also
consider other objects to act as buttons, such as graphics, where you can
employ a translucent gradient fill to the control, or fields, where you
can create the effect of a label that has multiple text styles. There are
several options for create button-style controls.


More information about the use-livecode mailing list