Check amrks disabled after first use
ObjectListView - ListView on caffeine, guarana and steroids
Brought to you by:
grammarian
Hello,
Thanks for ObjectListView, awesome work!
Please take a look at attached project. It contains a form with a listview. The button toggles between check marks / no check marks. The first time when in "check shown" the user can change the state - checked or not checked. Subsequent times this is no longer possible.
I tested this with Visual Studio 2013 Express in Windows 8.1 and Windows XP (same binary).
The project also has a line
lv_main.StateImageList = il_16_
commented out. Sometimes (randomly) the code that draws the check marks inside ObjectListView will fail and that is what I try to mitigate. As far as I can tell that is a separate problem not related to this on.
Thanks,
Nicu
those damn amrks :)
Hmmm... I see what you mean.
I'll have a closer look and get back to you
This clearly seems to be a bug in ObjectListView, but I just can't pin it down.
If you set the CheckBoxes property between settings Objects and CheckedObjects, the problem happens. But if you set CheckBoxes first, the problem doesn't happen.
So, this shows the problem:
But this is fine:
So, just reorder the statements, and everything will be fine :)