style
Syntax
[the] style of <buttonFieldOrWindow>
set the style of button "OK" to standard
set the style of window "Inspector" to palette
Explanation
The style
property allows you to modify the appearance and behavior of certain objects.
Window styles
standard
- A simple window with a title bar, with close, minimize and maximize buttons.palette
- A window with a small title bar, with close, minimize and maximize buttons. Palette windows “float” above all other windows in their own layer (useful for e.g. keeping your inspector window above the document being inspected).
Button styles
standard
- A system-standard pushbutton like it is used in alert sheets and confirmation dialogs. Note that these buttons may have different shapes on different platforms. Do not rely on their outline.standardRectangle
- A system-standard pushbutton that is rectangular in shape.checkbox
- A system-standard check box for options that can be activated/deactivated.rectangle
- A button that is guaranteed to be rectangular in shape.roundrectangle
- A button that is guaranteed to be rectangular in shape, but with rounded corners.oval
- A button that is guaranteed to be oval in shape.popup
- A system-standard popup button that shows a menu over the button when clicked. The button will show one menu item for each line in the button’s contents.
Field styles
standard
- A system-standard text field like it is used in alert sheets and confirmation dialogs.scrolling
- A system-standard text field like it is used in alert sheets and confirmation dialogs that has a scroll bar for more text.