Jump to content
Sign in to follow this  

probs with ListView

Recommended Posts


This is my first experiments with GUI.

I am having trouble conceptualizing and implementing a ListView Ctrl.

I have a large 2-D array.

I have successfully created toggles and other ctrls that allow the user to set search criteria.

When the search button is pressed the relevent results are displayed in the ListView ctrl.

I would now like the user to be able to highlight one record for editing.

This is where I am stuck.

The best I can figure it is to have the user drag and drop a ListViewItem into a box, and when the drop is triggered to run a function that parses the line into multiple fields. I would then have to research the original array in order to find that record and update the data. (??)

Any better ideas out there?

I have tried using functions such as _GUICtrlListView_GetItemText with no success (always returned an empty string)

Also, I was thinking that there must be a better way of tying the indices of the array with the indices of the ListView to avoid a research, but that is not that important.

Anyways, thanks for any help you have.


Share this post

Link to post
Share on other sites

I'm using _GUICtrlListView_GetItemTextString($listview, -1)

-1 means the selected/hightlighted item.

_GUICtrlListView_CancelEditLabel to edit the items data.

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.