Help Contents / GUI programming / ComboBoxes / ComboBoxSetBackgroundColor

ComboBoxSetBackgroundColor acombobox color

Command to set the background color of the ComboBox acombobox to the color color. 

color must be a valid color, see also setPenColor! 

Example: 

	cb=(ComboBox [][MyComboBox][Initial string] 
		[	[String 1] 
			[and a second string] 
			[and the last string] 
		] 
		[	(show "|MyComboBox| ComboBoxSelection) 
		] 
		[	(pr [change] ComboBoxValue) 
		] 
		[	v=ComboBoxValue 
			(pr [enter] v) 
			ComboBoxAppend cb v 
		] 
		wxCB_simple [-1 -1][300 200]) 
	ComboBoxSetBackgroundColor cb "red 


previous: ComboBoxSetValue	next: ComboBoxSetColor
