I'm trying to put an ArrayCtrl as a node of TreeCtrl.
Everything seems to be fine except of the positioning of the ArrayCtrl.
By default the ArrayCtrl will overlap with other nodes. If I set node's margin the ArrayCtrl will be shifted right and down. Shifting down seems to be a right thing, but shifting right doesn't look right.
Any suggestions how to fix that or how to do similar task in a different way?
qapko Messages: 55 Registered: October 2007 Location: Slovakia
Member
In 2008.1beta I had similar problem. The size of tree node is wrongly calculated when there is only Ctrl (and no Value) in node. The things were changed somewhere between 709.dev1 and 2008.1beta. Last week I've just fixed it for my purposes in my uppsrc (I'm sorry for not providing the bug report yet), but I have focused only on the way how I am using the component. I vote for fixing the problem in official sources by the author of the changes
I attach TreeCtrl.cpp and TreeCtrl.h for 2008.1beta fixing mine problems.
tojocky Messages: 607 Registered: April 2008 Location: UK
Contributor
Novo wrote on Mon, 11 February 2008 05:25
I'm trying to put an ArrayCtrl as a node of TreeCtrl.
Everything seems to be fine except of the positioning of the ArrayCtrl.
By default the ArrayCtrl will overlap with other nodes. If I set node's margin the ArrayCtrl will be shifted right and down. Shifting down seems to be a right thing, but shifting right doesn't look right.
Any suggestions how to fix that or how to do similar task in a different way?
TIA
Very interesting example... I want to put a TreeCtrl in ArrayCtrl column... and avery row node of TreeCtrl will have ArrayCtrl row.
Is possible?
I want to elaborate this in abbreviation mechanism.