Jump to content

Recommended Posts

Posted

I have an array of items created:

$itemarray[$i] = GUICtrlCreateListViewItem($itemname,$listview)

and I want to be able to use OnEvent so when the item is selected or clicked on, it triggers the OnEvent:

GUICtrlSetOnEvent($itemarray[$i], "ListItemAction")

However, I want each item to use the same function, but pass $i when it does so.

The function:

Func ListItemAction($incitem)

will take that and what not.

Is it possible to have the SetOnEvent's second parameter: ListItemAction($i)?

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
  • Recently Browsing   0 members

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