P
Paul Kay
Listview Icon Shuffle - Has anyone else experienced this?
Using VB.Net CF I have a Listview displaying large icons which I have added
to the control and the imagelist dynamically, pre-sorted by name.
I have used SendMessage and LVM_SETICONSPACING to set the pitch of the icons
(Thank you Alex Feinman)
All of that works as hoped (expected?)
When I display a second form using showdialog and then return to the
original form with the Icon display, I have to reassign the imagelist to the
listview (this is, I understand, a know 'bug' with the CF Listview).
I then have to re-set the icon pitch (From my testing it appears that
several different listview actions cause it to lose a previously set icon
spacing - these include reassigning the imagelist, beginupdate, endupdate
and clear.... But that's another matter, for now I can work around those
'bugs')
However, the crux of my problem is that the icons are no-longer displayed in
the original sorted order, but have undergone a subtle shuffle, although
they still link correctly to the underlying files which they represent.
Questions:
Is this a genuine Bug with the listview, as a result of changing the icon
spacing (I don't experience it when using the default spacing)?
Is it me?
I hope my explanation above is sufficient for someone to gain an insight to
my problem, as there would be an awful lot of code to extract and post a
working/failing example.
TIA
Paul Kay
Using VB.Net CF I have a Listview displaying large icons which I have added
to the control and the imagelist dynamically, pre-sorted by name.
I have used SendMessage and LVM_SETICONSPACING to set the pitch of the icons
(Thank you Alex Feinman)
All of that works as hoped (expected?)
When I display a second form using showdialog and then return to the
original form with the Icon display, I have to reassign the imagelist to the
listview (this is, I understand, a know 'bug' with the CF Listview).
I then have to re-set the icon pitch (From my testing it appears that
several different listview actions cause it to lose a previously set icon
spacing - these include reassigning the imagelist, beginupdate, endupdate
and clear.... But that's another matter, for now I can work around those
'bugs')
However, the crux of my problem is that the icons are no-longer displayed in
the original sorted order, but have undergone a subtle shuffle, although
they still link correctly to the underlying files which they represent.
Questions:
Is this a genuine Bug with the listview, as a result of changing the icon
spacing (I don't experience it when using the default spacing)?
Is it me?
I hope my explanation above is sufficient for someone to gain an insight to
my problem, as there would be an awful lot of code to extract and post a
working/failing example.
TIA
Paul Kay