![]() |
HOWTO: HasCheckbox use in virtual mode |
Post Reply ![]() |
Author | |
bunei ![]() Newbie ![]() Joined: 28 June 2012 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() Posted: 28 June 2012 at 10:21pm |
I used sample program VirtualList.
I want to use checkbox, so added code in sample program. (VirtualListView.cpp(37)) CVirtualRecord::CVirtualRecord(CDBVListSet* pSet) { CXTPReportRecordItem* pItem = new CXTPReportRecordItem; pItem->HasCheckbox(TRUE); AddItem(pItem); AddItem(new CXTPReportRecordItemText()); ... } ![]() Result, checkbox appeared. But checkbox is All checked. Can you please tell me how to use checkbox. Thanks.
|
|
![]() |
|
bunei ![]() Newbie ![]() Joined: 28 June 2012 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
please tell me how to use checkbox in virtual mode.
|
|
![]() |
|
GRLEX ![]() Groupie ![]() ![]() Joined: 17 February 2009 Location: Ukraine Status: Offline Points: 27 |
![]() ![]() ![]() ![]() ![]() |
Hi. If You still need answer then:
try to change your checkbox state by pItem->SetChecked(0 or 1); try to change editable property for your item For working with OnCheck event you need to handle event: ON_NOTIFY(XTP_NM_REPORT_CHECKED, <Your grid ID>, OnCheckGridItem) void OnCheckGridItem(NMHDR * pNotifyStruct, LRESULT *res); and check for column exist for your checkbox items.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |