setwindowoptions
OPTION
,
VALUE

The setwindowoptions statement changes the attributes of the current window (tool bar, scroll bars, etc.).


Parameters

This statement has two parameters:

option – the name of the option you want to change. See below for descriptions of each option. The option can be specified in either upper or lower case.

value – the new value for this option. Most of the options to this statement take Boolean values, you can use true(), “TRUE” or “YES” for true, or false(), “FALSE” or “NO” for false.


Description

This statement changes the attributes of the current window (tool bar, scroll bars, etc.).

Note: You can specify multiple option/value pairs in a single setwindowoptions statement, like this:

setwindowoptions option1,value1,option2,value2,option3,value3

If an option is not specified, it is not changed.

TOOLBAR

This option specifies whether or not the toolbar should be visible.

setwindowoptions "TOOLBAR","NO"

Note: You can use Palette instead of Toolbar to specify this option.

SCROLLBARS

This option specifies whether or not scroll bars should be displayed.

setwindowoptions "SCROLLBARS","YES"

VERTICALSCROLLBAR

This option specifies whether or not the vertical scroll bar should be displayed.

setwindowoptions "VERTICALSCROLLBAR","YES"

HORIZONTALSCROLLBAR

This option specifies whether or not the horizontal scroll bar should be displayed.

setwindowoptions "HORIZONTALSCROLLBAR","NO"

CLOSEABLE

This option specifies whether the current window is closeable. You can change this option at any time. If you want to ensure that the window cannot be closed, use:

setwindowoptions "CLOSEABLE","NO"

You can also specify this option when opening a window with the openform statement.

To find out whether the a window is currently closeable, use the windowinfo( function.


See Also


History

VersionStatusNotes
10.0NewNew in this version. In Panorama 6.0 and earlier it was not possible to change these options once a window had been opened.