Tree Column in Virtual Mode |
Post Reply |
Author | |
binkman71
Newbie Joined: 22 July 2009 Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 22 July 2009 at 5:37pm |
I have tried playing with the VirtualList example given for setting up a virtual mode Report Control. While I can get the virtual mode to go, I can't get individual columns to actually...work.
If I add a checkbox to a column, clicking it checks every checkbox in that column.
If I use a tree column (this is true of the sample as it exists too), I cannot expand/collapse the tree nodes.
I am setting the checkboxes and tree mode in the override of CXTPReportRecord::GetItemMetrics as the example shows. I am not setting the check state of the boxes, though, so similar to this:
Thanks,
K. |
|
binkman71
Newbie Joined: 22 July 2009 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
I got the check boxes working, still at a loss of tree node expanding/collapsing...
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Please check recent sample with multi-level tree in virtual mode - it also support click on expand/collapse button on tree - app should react on this click
Menu - Report - Tree...
Check status bar message while you click on Expand/Collapse button on tree
I can give you a sample code if you are interesting
|
|
markr
Senior Member Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
|
I would be interested in the sample code that you offered.
Thanks for your time and consideration. |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
>>I got the check boxes working, still at a loss of tree node expanding/collapsing...
You need to support it on your app level - control have no ideas about your virtual records
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
This is a requsted sample - you need to use m_lstCollapsed if you want support proper reaction on virtual row checkbox click
|
|
fjosesen
Groupie Joined: 30 June 2008 Status: Offline Points: 49 |
Post Options
Thanks(0)
|
I think the same than Mark. When using virtual tree mode, the hosting app should manage the hierarchy and handle the expanding/collapsing events.
Welcome to the virtual world! Too fast and too fool!
FJSen
|
|
Products: Suite Pro (ActiveX) v18.0.1
Toolkit Pro (MFC) v18.0.1 Platform: Windows 10 (64bit) Language: VC++ 2013 (MFC) |
|
binkman71
Newbie Joined: 22 July 2009 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
Thanks Mark. I'll be examining the code you provided! It should, at the very least, be a good jumping off point.
And I do realize I'd have to support things on the data end. But, that said, in the past when I've used controls with virtual modes in them, the control requested display items one at a time (but they didn't contain trees). So if you had a tree like this:
Row0
|-----Row1
|-----Row2
Row3
|-----Row4
| |------Row5
|-----Row6
And you collapsed Row 4, the control would ask (one at a time, via a list, etc.) for the records for Rows 0,1,2,3,4,and 6 to display. If Row 0 was then collapsed, it would ask for 0, 3, 4, and 6 [in this extrememly simple example]. This would be my ideal for a control of this nature; mind you I don't know if such a thing exists. Just saying this is what I was hoping for. :)
K.
|
|
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 |