Jump to content
Developer Wiki and Function Reference Links ×

ISDK::SetListBrowserItemCheckState not working

Stefan Bender

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

Link to comment

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.

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.

  • Create New...