04-04-2007, 04:51 AM
I've found various other threads on handling list boxes, but it looks like most of the responses presume some knowledge that I don't have. I apologize for the basic level of this question, but I'm really stuck...
I'm running an application that makes a list box, whose class is +WindowsForms10.LISTBOX.app.0.378734a. Sometimes all of the list's elements are visible, and sometimes there's a scroll bar so that you can't see all of them until you scroll.
I have written QM code that gets the handle of the list box. Now I need to (1) read the text in every individual element of the list, and then (2) select some of the elements of the list.
I can't figure out how to do either of these things. I have tried using the "Control-Specific Actions" dialog box to select one of the list box items by its index, but even that doesn't seem to work. I don't get an error message, but nothing appears to happen, either. And even if that did work, I'd still have the problem of how to read the elements in, in the first place.
Any help would be greatly appreciated.
I'm running an application that makes a list box, whose class is +WindowsForms10.LISTBOX.app.0.378734a. Sometimes all of the list's elements are visible, and sometimes there's a scroll bar so that you can't see all of them until you scroll.
I have written QM code that gets the handle of the list box. Now I need to (1) read the text in every individual element of the list, and then (2) select some of the elements of the list.
I can't figure out how to do either of these things. I have tried using the "Control-Specific Actions" dialog box to select one of the list box items by its index, but even that doesn't seem to work. I don't get an error message, but nothing appears to happen, either. And even if that did work, I'd still have the problem of how to read the elements in, in the first place.
Any help would be greatly appreciated.