BB___BackgroundColor

=BackgroundColor$= toc

Description
> Sets the background color for the window and for groupboxes, checkboxes, radiobuttons and statictext controls.

Syntax
//The command is case sensitive.//

Hints

 * **//Placing the statement.//** The BackgroundColor$ value must be set before a window is opened. If more than one BackgroundColor$ value is declared, the last value set will be valid for that window.
 * **//Colors.//** The color variables used for GUI controls can only use named colors.
 * **//Window types.//** Setting BackgroundColor$ works only for windows of type "Window" and "Dialog".
 * **//Menu.//** Colors changes only at window client area - so if your window has a menu, menu bar will retain default color ("buttonface" ?)

Other Special Color Variables
The following variables can be used to set the background color of some controls. See the individual pages for discussion. TextboxColor$ ComboboxColor$ ListboxColor$ TexteditorColor$

Example
code format="lb" 'set the foreground and background colors nomainwin BackgroundColor$ = "darkblue" ForegroundColor$ = "lightgray" statictext #dialog.static, "What is your name?", 10, 10, 100, 20 textbox #dialog.tbox, 10, 30, 100, 20 button #dialog.accept, "Accept", [gotIt], UL, 10, 55

open "Name getter" for dialog as #dialog #dialog.tbox "Type your names in here." #dialog "trapclose [quit]" wait

[gotIt] #dialog.tbox "!contents? name$"

notice "Hi "; name$ wait [quit] close #dialog end code

Useful Functions
code format="lb" Place a useful function using this command here code