Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Combo Box Help
#1
Is it possible to make a function search through a combo box in a dialog looking for a certain thing then select it?

Like Example
Combo Box has this in it
TEST1
TEST2
TEST3
TEST4
TEST5

Can i make it Select TEST4 ?
Or do you have to select manually?

Thanks
#2
Try CB_SelectString or accessible object Select.
#3
Thanks Gint

CB_SelectString works great
#4
could i use this to select all combo box items acc isnt working
#5
Combo box controls allow single selected item. If you can select more items, it is not a combo box.
What would you do with all selected items?
#6
just to retrieve data i only know how to get data from selected items how can i recieve from none selected
#7
Macro Macro1534
Code:
Copy      Help
;----
int w=win("Options" "#32770")
int c=id(1571 w)

int i
for i 0 CB_GetCount(c)
,CB_GetItemText(c i _s)
,out _s
#8
that works better than what i was trying to do. i was going to try and get whole list in one str then compare each line in a array but with this i can compare each line as it is getting them thx gint


Forum Jump:


Users browsing this thread: 1 Guest(s)