kohait00 Messages: 939 Registered: July 2009 Location: Germany
Experienced Contributor
hi all
ArrayCtrl has got the possibility to own the Ctrls if they are passed as pointer, so one can create some on the fly and have the TreeCtrl take care of their destruction. this is great for editing the represented values.
it does not break the 'everything-belongs-somewhere-rule'. TreeCtrl is then the container..
since these two, ArrayCtrl and TreeCtrl are the major complex grouping Ctrl's they should support it and be of similar skills.
what do you think?
EDIT: at first i thought it is easy task, since TreeCtrl is already setup as to have Ctrls, but not owned. but i realize that TreeCtrl::Node and TreeCtrl::Item handling is not fitting in design as to handle ownership.
maybe someone could help here. attached is the so far changed TreeCtrl sources