<
ComboBox Control functions

How to show/hide the comboBox control CBDropDown(BOOL arg1) The contents of combo box can be shown/hidden by setting 0 to show and 1 to Hide in arg1.

combo=parent:tt_ComboBoxControlHandle( "nativeclass=ComboBox","caption=Mail Id:","height=21","width=102")
CBDropDown(1)

How to get item count in the ComboBox CBGetCount() Total number of items can be retreived from this function.

combo=parent:tt_ComboBoxControlHandle( "nativeclass=ComboBox","caption=Mail Id:","height=21","width=102")
icount=combo:CBGetCount()

How to click on an item in the ComboBox control CBClick() This function is used to click on an item in the ComboBox.

combo=parent:tt_ComboBoxControlHandle( "nativeclass=ComboBox","caption=Mail Id:","height=21","width=102")
combo:CBSelString("Team Lead")
combo:CBClick()

How to get text from the combo control CBGetText(int arg1) Zero based index of text need to passed in the arg1.

combo=parent:tt_ComboBoxControlHandle( "nativeclass=ComboBox","caption=Mail Id:","height=21","width=102")
i=combo:CBGetText(1)

How to select item from the combo control based on string CBSelString(string arg1) CBSelectString(string arg1) the item which matches the string passed in the arg1 would be selected.

combo=parent:tt_ComboBoxControlHandle( "nativeclass=ComboBox","caption=Mail Id:","height=21","width=102")
combo:CBSelString("Team Lead")

Trace Technologies Pvt. Ltd.,  Copyright 2003 - 2006