Hey Sven, 2010/11/10 Knoblich Sven <[email protected]>: > I want to set the id of the <input> element of the expand/collapse icons of > WtreeNode. Especially for the separat icon-pair (nav-minus/nav-plus) when the > node is set to setSelectable( false). > > A id set with setId( "xy") of the elements > > -WTreeNode > -WTreeNode::LabelIcon(), > -WTreeNode::LabelIcon()->icon1() and icon2() > > didn't solve the problem and expandIcon_ is private and therefore not > callable from extern.
The reason that the expandIcon_ is private is that we may want to swap it out for another icon pair solution in the future (e.g. one that is CSS-only). If you understand this risk, then you can sneak it out of the tree node like this: node->labelArea()->table()->elementAt(0, 0)->children()[0] This can be either a WIconPair (if the node can be expanded) or a WText otherwise. Regards, koen ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
