05-22-2006, 09:33 AM
Hi,
I want to verify a item in a list box is present or not....
can i use the array concept like getting the total list of items from the list box and storing it in an array any then checking whether that item is present or not....
I want to verify a item in a list box is present or not....
can i use the array concept like getting the total list of items from the list box and storing it in an array any then checking whether that item is present or not....
Gintaras Wrote:Examples
ListBox control in QM Find dialog
Acc a=acc("" "LIST" "Find" "ListBox" "" 0x1000)
for a.elem 1 1000000000
,str s=a.Name; err break
,out s
SysListView32 control in QM My Macros dialog
Acc a=acc("" "LIST" "My Macros" "SysListView32" "" 0x1000)
for a.elem 1 1000000000
,str s=a.Name; err break
,out s
ComboBox control in QM Options dialog (Fonts)
int hwnd=child(1003 "" "ComboBox" "Options" 0x5)
int i n=control.CB_GetCount(hwnd)
for i 0 n
,str s
,control.CB_GetItemText(hwnd i s)
,out s
ComboBox controls often are populated only on drop-down event.