gammasts Posted June 1, 2005 Posted June 1, 2005 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)?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now