Button hilites

J. Landman Gay jacque at hyperactivesw.com
Wed Dec 14 14:24:33 EST 2005


Graham Samuel wrote:

> It appears to me that if a button has style 'push button', then when  
> hilited, its hilite color only shows up on the Mac and not the PC;  
> whereas if the style is 'square button', then you get the color on  both 
> platforms. Can anyone else confirm this?
> 
> The RR docs has this on button styles:
> 
>> The style of a button is one of the following:
>>     * standard: the standard button for the current lookAndFeel setting
>>     * transparent: no border; name is displayed but background is  
>> transparent
>>     * opaque: background is the opaque backgroundColor of the button
>>     * rectangle: opaque rectangular or square button with a border
>>     * roundRect: opaque rectangular or square button with rounded corners
>>     * shadow: opaque rectangular or square button with a drop shadow
>>     * menu: a menu whose appearance is set by the menuMode property
>>     * checkbox: a checkbox option button
>>     * radioButton: a radio button
> 
> 
> note that 'push' and 'square' aren't mentioned , even though they  both 
> appear in the 'style' popup in the property inspector for a  button. 
> Fairly obviously, 'square' is a synonym for 'rectangle' in  this 
> context, but which one is 'push'?

That one is the "standard" button style. This button takes on the OS 
native default appearance. So whatever is standard for the OS is what 
you will see when the button is pressed. If you want a custom hilite, 
you'll have to use one of the other styles.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list