Page 1 of 1

Bug on Listview class

PostPosted: Tue Jan 09, 2018 9:27 pm
by Silvio.Falconi
If I use the method

oList:lPopUp :=.t.

i can show a menu popup to change the visualization of Icons

but if I select one selection of the menu it draw with the mouse a dotted box

and then the final user can select all files and it is no good for me as you can see here

Image



How I can to not draw the dotted box with the mouse
it seem as attach the mouse to the control
any solution ?

Re: Bug on Listview class

PostPosted: Wed Jan 10, 2018 7:57 am
by Antonio Linares
Silvio,

It seems as you need to use the style LVS_SINGLESEL

Please modify the class source code and test it, thanks

Re: Bug on Listview class

PostPosted: Wed Jan 10, 2018 12:19 pm
by Silvio.Falconi
where I must modify on CLASS TListView
LVS_SINGLESEL value ?

Re: Bug on Listview class

PostPosted: Wed Jan 10, 2018 4:00 pm
by Silvio.Falconi
I try with

#define LVS_ICON 0
#define LVS_SMALLICON 2
#define LVS_LIST 3
#define LVS_SINGLESEL 4

oList:WinStyle(LVS_SINGLESEL,.T.)


but is the same