HOWTO: HasCheckbox use in virtual mode |
Post Reply |
Author | |
GRLEX
Groupie Joined: 17 February 2009 Location: Ukraine Status: Offline Points: 27 |
Post Options
Thanks(0)
Posted: 28 September 2012 at 12:00pm |
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.
|
|
bunei
Newbie Joined: 28 June 2012 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
please tell me how to use checkbox in virtual mode.
|
|
bunei
Newbie Joined: 28 June 2012 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
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.
|
|
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 |