Sign in to follow this  
Followers 0
racerx2oo3

Access GUI items in a SysListView

4 posts in this topic

I've tried searching the forums and can't find this type of issue addressed. I'm working with an applet that uses a SysListView for modifying configuration settings. The first column contains the setting description. The second column has a ComboBox that drops down to allow you to change the settings.

I can read the text in the either column using _GUICtrlListViewGetItemText. The text for the 2nd column will contain whatever the value in the listbox currently is. However, I need to be able to see what values the combobox contains. While each row in the Listview contains a ComboBox, each combobox reports the Same control ID and the same ClassNameNN.

Does anyone have any hints for working with GUI items contained in a ListView?

Sean

Share this post


Link to post
Share on other sites



Need some more info for give help:

- what application it is?

- some screenshots with AU3Info?

Definitely look at Auto3Lib from PaulIA

Zedna,

The application is the control panel applet for a video graphics card.

Attached are two screen caps, the first shows the information for the SysListView, the second has the ComboBox selected. Each row contains a combobox in the second column, and each combobox has the same description, ControlID 1, ComboBox2.

I installed and am using some of the methods from the Auto3Lib for dealing with ListBoxes, but I still can't determine how to interact with the combo box.

Thanks

Sean

Posted Image

Posted Image

post-14636-1171324983_thumb.jpg

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

When Combo for all rows has the same control ID then no problem.

Look at GuiCombo.au3 in Include directory and use:

ControlGetHandle

_GUICtrlComboGetCount

_GUICtrlComboGetCurSel

_GUICtrlComboGetLBText or _GUICtrlComboGetList

_GUICtrlComboSelectString or _GUICtrlComboSetCurSel

EDIT:

Or maybe better is to use ControlCommand() and it's commands for ComboBox, see HelpFile

EDIT2:

I think ControlCommand() is the only right solution as you need to control ComboBox in external application

Edited by Zedna

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0