Stefan Bender Posted January 20, 2021 Share Posted January 20, 2021 Dear developers, I'm trying to implement a listbrowser that supports Direct Editing. However, I can't get the "check state" cells working correctly. When building the list, I call Boolean set_ok = gSDK->SetListBrowserItemCheckState(dialog, item, line, column, (myBooleanVariable) ? CGSMultiStateValueChange::eStateValueOn : CGSMultiStateValueChange::eStateValueOff); with myBooleanVariable == true and set_ok also returns true, but the cell remains empty. I had also supposed that you have to provide the cell value in the LB's DirectEditHandler, but the direct edit handler is never called unless I click on the list. Could this be the problem? I also tried RefreshListBrowser, but no effect. Cell interaction type is kListBrowserItemInteractionEditCheckState of course, direct editing is enabled for both LB and cell. ListBrowserControlType is kListBrowserControlNone, ListBrowserItemDisplayType is kListBrowserDisplayTextOnly Does anybody have an idea what could be wrong? To me this looks like a bug. Thanks for any help, Stefan Bender Quote Link to comment
Stefan Bender Posted January 21, 2021 Author Share Posted January 21, 2021 It seems that VWListBrowserItem::SetItemInteractionType() has the side effect of deleting the contents of a cell. This is quite unexpected as it only should change some internal flags. Submitted as VB-176506. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.