- 如何在树头和第一个节点之间添加垂直距离?
- 选择该节点时如何设置节点标签的背景颜色。
问问题
845 次
1 回答
0
I don't believe there is an easy way to add vertical distance between tree header and first node. It would be possible through making a customer TreeItemRenderer and just adding a gap at the top.
To change the background color of a node when it is selected you can use
myTree.setStyle( "selectionColor", 0x0000FF );
or declared in the mxml as a property of the control
<mx:Tree selectionColor="0x0000FF" />
于 2011-06-30T18:05:44.793 回答