Specifies the general appearance and behavior of an object.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
set the style of object to styleName
# Examples
set the style of card button 3 to rectangle
# Description
* "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
The style of a button interacts with certain other properties. For example, setting the opaque of a standard button to false sets its style to "transparent".
* "transparent": no border; text is displayed but background is transparent * "opaque" : background is the opaque backgroundColor of the field * "rectangle": opaque field with a border * "shadow" : opaque field with a drop shadow * "scrolling": opaque field with a vertical scrollbar
* "curve": a curved line * "line": a straight line * "oval": an oval or circle shape * "polygon": an irregular polygon shape * "rectangle": a rectangle or square shape * "regular": a regular polygon shape * "roundRect": a rectangle or square shape with rounded corners
* "scrollbar": a standard scrollbar * "scale": a "bead on a wire" slider control * "progress": a sliding progress bar display
Vertical scale and progress scrollbars always reflect the current lookAndFeel setting. Horizontal scale and progress scrollbars use the Motif look and feel, unless the lookAndFeel is set to "Appearance Manager".
* "topLevel": editable window * "modeless": modeless dialog box, cannot be edited, can use only Browse tool * "modal": modal dialog box, can use only Browse tool * "palette": palette window, cannot be resized or edited, can use only Browse tool
# Tags
ui,
# See
- **keyword:** standard, opaque, popup, shadow - **property:** roundEnds, properties, shadow, dontResize, style, windowShape, menuMode, threeD, backgroundColor, lookAndFeel - **command:** modeless, pulldown - **object:** scrollbar, graphic, field, stack - **glossary:** object, property, behavior, regular polygon, checkbox, Motif, appearance, background