Menu

#132 Check amrks disabled after first use

C#_v2.8
wont-fix
nobody
1
2015-06-27
2014-11-03
Nicu Tofan
No

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

1 Attachments

Discussion

  • Nicu Tofan

    Nicu Tofan - 2014-11-04

    those damn amrks :)

     
  • Phillip Piper

    Phillip Piper - 2014-11-05
    • status: open --> accepted
     
  • Phillip Piper

    Phillip Piper - 2014-11-05

    Hmmm... I see what you mean.

    I'll have a closer look and get back to you

     
  • Phillip Piper

    Phillip Piper - 2015-06-27

    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:

    lv_main.Objects = pass_list
    lv_main.CheckBoxes = True
    lv_main.CheckedObjects = pass_list
    

    But this is fine:

    lv_main.CheckBoxes = True
    lv_main.Objects = pass_list
    lv_main.CheckedObjects = pass_list
    

    So, just reorder the statements, and everything will be fine :)

     
  • Phillip Piper

    Phillip Piper - 2015-06-27
    • status: accepted --> wont-fix
     

Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.
Try Free →