Jump to content
Sign in to follow this  

_GUICtrlListView_SetItemSelected / _GUICtrlListView_ClickItem not working at all

Recommended Posts



Hi there,

I have made a succesfull application with some listview code I got from here (thanks whoever it was), but I still have some minor bugs that are really annoying.

Here is my script in brief (edited)

_GUICtrlListView_SetItemSelected($hListView, $iIndex) <--- since my listview is now changed and reloaded I want to set the correct item focused, this has NO effect ?!?

_GUICtrlListView_ClickItem($hListView , $iIndex) <--- I try the same with Clickitem .... No effect?!?

Lol and 15 minutes later I solve it myself... I will leave it here for others

DO not use _GUICtrlListView_SetItemSelected together with _GUICtrlListView_ClickItem to update your listview... Only use _GUICtrlListView_ClickItem

Edited by RickyMartin

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