PDA

View Full Version : Tree default checked


purg
09-28-2005, 07:04 PM
Could be blind but im unable to find how to create a tree (checkboxes=true) with some of the boxes checked by default. Come to think about it im also unable to find anyway to check or uncheck any of the boxes from a script.

tree1
tree1.1
tree1.2
tree2
tree2.1

If tree1 is checked I would like 1.1 & 1.2 auto checked or unchecked.

Im also wanting to have a button for unselect all and select all.

Help

Brett
09-29-2005, 08:41 AM
Our next service release will have a way to get/set the checked state of a tree item.

SonG0han
09-30-2005, 05:00 AM
an action to enable/disable/invert all checkboxes below would be nice too.

if you select the checkbox of the one on top all below get checked too. (not always what you want but sometimes its good) :cool

purg
09-30-2005, 06:05 PM
an action to enable/disable/invert all checkboxes below would be nice too.

if you select the checkbox of the one on top all below get checked too. (not always what you want but sometimes its good) :cool

That was the first thing I looked at trying to do and thought I must have missed something basic. I look forward to the service pack as the tree is usless in its present state. Honestly no offence but for the two projects I have both require this checking. Any questimate release date for the update?

Brett
10-01-2005, 04:52 AM
Next week for sure.

purg
10-02-2005, 07:03 PM
Using a work around in the meantime


Software_check[e_NodeIndex] = "unchecked";
Software_number = Software_number - Math.Pow(2,e_NodeIndex);
if e_Checked then
Software_number = Software_number + (2*Math.Pow 2,e_NodeIndex));
Software_check[e_NodeIndex] = "checked";
end


This doesnt allow default checked items but simplifies checking which tree options have been checked. Software_number contains a base 2 value you can easily reverse in other scripts. Software_check[e_NodeIndex] isnt needed but needed to an input screen I was using.