Defining behaviour of open and close commands¶
!compat open |
Define behaviour of open and close commands |
SYNTAX
!compat open = 3
This declaration causes the open and close commands to have identical functionality to show and hide, when used with windows and window controls (other than menus).
It is strongly recommended that all programs that use open and close for this purpose be changed so that show and hide are used instead, thereby freeing the open and close commands for other more useful features.
If this declaration is not present, then in programs compiled using Version 4.2 or later, the open and close commands, when applied to a listbox, open and close the listbox’s drop down list. The commands may be applied to other window control types in future.
It is not normally necessary to include the declaration !compat open = 3 in programs, since it is contained in the standard include file $SCULPTOR/include/local.h (which is itself included in $SCULPTOR/include/sculptor.h.) If it is not required as the default behaviour, remove the declaration from $SCULPTOR/include/local.h.
RELATED TOPICS |