News: SPECIAL OFFER: EZGUI Classic (4.0) until May 31, 2013 only $29 !

TO REGISTER on Forum, contact tech support: http://cwsof.com/support.html
 
Pages: [1]   Go Down
  Print  
Author Topic: Unselecting Listview Item  (Read 140 times)
Brian Reynolds
PreRelease 4.5
Sr. Member
*
Posts: 304


View Profile
« on: July 28, 2012, 08:26:44 PM »

Using a Listview, I click on an item to edit its contents. At that stage the listview line is highlighted.
I press a button to replace the edited data.
All works okay except that the listview line remains highlighted.
If I wish to change the contents of that line again, nothing happens when I click on it.
To make further changes to the line I have to click on another line, then go back to the line I wish to change.
I have tried EZ_SelectItem with a -1 to unselect the line but it doesn't work with a Listview.
Has anyone else experienced problems like this?
Logged
Chris Boss
Administrator
Hero Member
*****
Posts: 1812


View Profile
« Reply #1 on: July 28, 2012, 09:20:26 PM »

You want to use the EZ_SetSelect command.


It sets the select state of an item in a listview.

With a listview, you really are not selecting an item, but simply setting a state of the item.

EZ_SelectItem is only for listboxes or comboboxes.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: