|
-
May 17th, 2020, 03:54 AM
#11
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by LaVolpe
Bug Report: ListView, whether listitems exist or not
- when listview is shown and has 2+ column headers, remove all but one
- re-add 1 or 2 column headers
- Subscript out of Range error
I think the control is trying to redraw somewhere between the column header being added, but the header not being appended to the collection yet.
Updated: I don't know if this was the right thing to do or not, but solved the problem...
Class: lvwColumnHeaders
Method: Add
Action: moved the "ShadowListView.FColumnHeadersAdd" call to end of method
The fix as you suggested is OK. However, I would like to replicate the problem to look for another potential issue.
But I couldn't replicate. Can you bundle a small demo?
 Originally Posted by LaVolpe
I noticed you added several types of sorting options, but didn't include the one I was looking for... Explorer-like sorting when text & numeric listitems are intermixed.
Thanks. Will include sort option StrCmpLogicalW soon.
 Originally Posted by LaVolpe
When a listview column is removed, you shift all subitems left one. That only works if the last subitem was the one removed. In your sample project, try removing column 2 (subitem 1). The column headers shift correctly, but the subitems do not.
The MS ListView behaves exactly the same. So I do not consider this being a "bug". Thanks however for your testing.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|