Jump to content

probs with ListView


tao
 Share

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.

tao.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...