LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Combobox usage in CVI 7.1

hello,

When loading a ComboBox control , it always display a space item as the default ,
assuming that there has existed some items in it , hope just display one of items when the control is loaded ,
how to do this ? how to disable the action of the control's edit ?


David
0 Kudos
Message 1 of 2
(2,974 Views)
If you want to change the displayed string in a combobox, after the combobox is created, use SetCtrlVal to set the control's value to one of the existing strings. If the callback for the combobox modifies other objects on your UI based on the combobox value, make those same changes after programmatically setting the combobox control's value.
If you want to disable edit, why not use a list box or ring instead of a combobox?
0 Kudos
Message 2 of 2
(2,965 Views)