-- Lingo syntaxwindowObjRef.titlebarOptions // JavaScript syntaxwindowObjRef.titlebarOptions;
Window property; specifies a list of properties that stores the title bar options of a window. Read/write.
The property list contains the following properties:
| Property | Description |
|---|---|
#icon |
Specifies the cast member icon to use in the title bar. This property is only available if the title bar is visible (the |
#visible |
Specifies whether the title bar is visible. If |
#closebox |
Specifies whether a close box appears in the upper right corner of the window. If |
#minimizebox |
Specifies whether a minimize box appears in the upper right corner of the window. If |
#maximizebox |
Specifies whether a maximize box appears in the upper right corner of the window. If |
#sideTitlebar |
(Macintosh only) Specifies whether the title bar should appear on the side of the winow. If |
These properties can also be accessed by using the Movie object's displayTemplate property.
This statement displays in the Message window the available titlebar options for the window named Elements:
-- Lingo syntax
trace(window("Elements").titlebarOptions)
// JavaScript syntax
trace(window("Elements").titlebarOptions);
These statements set the icon property to the bitmap cast member named smallIcon:
-- Lingo syntax
window("Elements").titlebarOptions.icon = member("smallIcon")
// JavaScript syntax
window("Elements").titlebarOptions.icon = member("smallIcon");
appearanceOptions, displayTemplate, Window