Futurebasic/Language/Reference/def setwindowbackground
Syntax
editSyntax 1: DEF SETWINDOWBACKGROUND
Syntax 2: DEF SETWINDOWBACKGROUND
Revised
editFebruary, 2002 (Release 6)
Description
editUsing Syntax 1, this sets the output window's background to be auto-refreshing. It even maintains the background after the closing of an edit field or button without requiring a window update. This also insures that the proper background is used whether your application is operating in OS 9 or X. This only works with the Appearance Runtime. Syntax 2 is used to set a background color for the window. The color is a standard RGBcolor record. The applyNowBool parameter is non-zero if the window is to be updated immediately and false if the change will take place the next time anything is drawn in the window. Acceptable values for the _backgroundconstant are:
_kThemeActiveDialogBackgroundBrush ( 1)
_kThemeInactiveDialogBackgroundBrush ( 2)
_kThemeActiveAlertBackgroundBrush ( 3)
_kThemeInactiveAlertBackgroundBrush ( 4)
_kThemeActiveModelessDialogBackgroundBrush ( 5)
_kThemeInactiveModelessDialogBackgroundBrush ( 6)
_kThemeActiveUtilityWindowBackgroundBrush ( 7)
_kThemeInactiveUtilityWindowBackgroundBrush ( 8)
_kThemeListViewSortColumnBackgroundBrush ( 9)
_kThemeListViewBackgroundBrush (10)
_kThemeIconLabelBackgroundBrush (11)
_kThemeListViewSeparatorBrush (12)
_kThemeChasingArrowsBrush (13)
_kThemeDragHiliteBrush (14)
_kThemeDocumentWindowBackgroundBrush (15)
_kThemeFinderWindowBackgroundBrush (16)
Example:
The following code builds a window and sets the background. If the same code were run under system 9, the window with the theme background would be solid gray. WINDOW 1 DEF SETWINDOWBACKGROUND(¬
_kThemeActiveDialogBackgroundBrush,_zTrue)
DO HANDLEEVENTS UNTIL 0