Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
List Boxes
#1
I am having a difficult time getting strings from list boxes where the style is not SysListView32 but ListBox instead Cry
#2
Can be used LB_GetItemText or accessible object functions. What code you use?
#3
Ok, I was able to use LB_SelectedItem, works great.

Next question, how do I find a specific item in the list box?

:lol:


For example, if the listbox contains:

Apples
Oranges
Grapes


How do I make it select "Oranges"
#4
Type

.LB

in a new line, and you will see available listbox functions. In this case, use LB_FindItem if you only want to get item index, or LB_SelectString to select.
#5
LB_SelectString(hlb "Oranges")


Did not select Oranges Sad Selected the first item in the lisbox
#6
Try accessible object functions. Like this:

Code:
Copy      Help
Acc a=acc("Oranges" "LISTITEM" "Window Name" "ListBox" "" 0x1001)
a.Select(1|2)

Both functions can be entered using dialogs.


Forum Jump:


Users browsing this thread: 3 Guest(s)