46
EZGUI 5 support forum / Re: Unselect in Listview
« on: September 21, 2021, 08:33:16 pm »
There are different approaches I can think of.
The easiest would be to simply use a Global variable and store the last selected item index. The user need not click the same item again to move the data.
Add a button which which is used for the event to Move the data.
If you want to move the data by clicking on the listview use the double click event instead.
Another trick would be to subclass the control and process the %EZ_LButtonDown message and calculate which item it is clicked on.
The easiest would be to simply use a Global variable and store the last selected item index. The user need not click the same item again to move the data.
Add a button which which is used for the event to Move the data.
If you want to move the data by clicking on the listview use the double click event instead.
Another trick would be to subclass the control and process the %EZ_LButtonDown message and calculate which item it is clicked on.