COMBOBOXENABLE

Synopsis
COMBOBOXENABLE name state
Description

Enables or disables the combobox identified by name. If state equals TRUE, then the combobox is enabled. If state equals FALSE, then the combobox is disabled.

Example
WINDOWCREATE "main "mywindow "mytitle 0 0 100 100 []
COMBOBOXCREATE "mywindow "mycombo 25 0 50 50
COMBOBOXADDSTRING "mycombo [3]
COMBOBOXADDSTRING "mycombo [4]
COMBOBOXADDSTRING "mycombo [5]
COMBOBOXADDSTRING "mycombo [6]
COMBOBOXSETTEXT "mycombo [3]
COMBOBOXENABLE "mycombo "False

The combobox is now disabled

COMBOBOXENABLE "mycombo "True
WINDOWDELETE "mywindow

SourceForge.net Logo