claudiof
03-09-2009, 02:22 AM
string $window = `window`;
string $layout = `formLayout`;
string $control = `treeView -parent $layout -numberOfButtons 3 -abr false`;
formLayout -e
-attachForm $control "top" 2
-attachForm $control "left" 2
-attachForm $control "bottom" 2
-attachForm $control "right" 2
$layout;
showWindow $window;
$a=`treeView -edit -addItem "layer 1" "" $control`;
and now attempting to query it via :
treeView -q -itemIndex "layer 1" $control
Error : Object not found: layer 1.
how can I learn the item index of item "layer 1"?
(thanks before any suggestions)
string $layout = `formLayout`;
string $control = `treeView -parent $layout -numberOfButtons 3 -abr false`;
formLayout -e
-attachForm $control "top" 2
-attachForm $control "left" 2
-attachForm $control "bottom" 2
-attachForm $control "right" 2
$layout;
showWindow $window;
$a=`treeView -edit -addItem "layer 1" "" $control`;
and now attempting to query it via :
treeView -q -itemIndex "layer 1" $control
Error : Object not found: layer 1.
how can I learn the item index of item "layer 1"?
(thanks before any suggestions)
