BB___ListboxColor

=ListboxColor$= toc

Description
> Sets the background color of a listbox to one of the named colors.

Syntax
//The command is case sensitive.//

Hints

 * **//Placing the statement.//** The ListboxColor$ value can be changed between each control statement. A listbox will be colored according to the last color statement issued before the command to create the listbox. Background colors are set before the GUI window is opened and cannot be changed after the window is opened.
 * **//Colors.//** The color variables used for GUI controls can only use named colors.

Example
code format="lb" nomainwin a$(1) = "one" a$(2) = "two" a$(3) = "three" a$(4) = "four"

ListboxColor$ = "yellow" listbox #win.listbo, a$,[doList],10,10,120,200

open "Listbox Demo" for window as #win
 * 1) win "trapclose [Quit]"
 * 2) win.listbo "selectindex 1"

wait

[Quit] close #win:end

[doList] notice "You chose ";sel$ wait code
 * 1) win.listbo "selection? sel$"

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