Jump to content
Stefan Bender

ISDK::SetListBrowserItemCheckState not working

Recommended Posts

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

Share this post


Link to post

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.

Share this post


Link to post

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...