Groups | Blog | Home
all groups > flash actionscript > may 2004 >

flash actionscript : Checkboxes(v2) for a Tree(v2)



d.merck
5/7/2004 9:02:49 PM
I have been able to create a tree(v2) with checkBoxes(v2) by building a custom
cell renderer. However, the check boxes indent with the leafs in the tree. I
would like to keep the checkboxes aligned on the left but still a part of the
branches and leaves when I scroll. Does anyone know how I can aproach this in
the cell renderer or should I be looking at it in a completely different way?

Thanks,
Dave
d.merck
5/7/2004 9:33:46 PM
I figured it out

Under the size function in a custom cellrenderer

var indent =
(listOwner.getNodeDepth(listOwner.getItemAt(getCellIndex().itemIndex))-1) *
listOwner.getStyle("indentation");

cellCheckBox._x = -indent;

Hope it can help someone else,
Dave


Apgar
8/17/2005 7:43:06 PM
Dave, can you share the code for the checkboxes in a tree, I beating myself up and getting nowhere. dloegel@ingr.com
Thanks
AddThis Social Bookmark Button