#120035 - 2004-05-24 01:31 PM
Re: Treeview example
|
Rory Daniels
Getting the hang of it
Registered: 2003-02-25
Posts: 64
Loc: Bristol, UK
|
Sorry just started playing with this code. Not quite sure how to get the selected node?
Rory
Code:
$TreeView = $Form.TreeView() $TreeView.Width = $Form.ClientWidth / 4 $TreeView.Dock = 3
$MachineArray=MPW002841,MPW002842,MPW002843,MPW002844,MPW002845,MPW002846,MPW002847,MPW002848,MPW002849,MPW002850 $RootNode = $TreeView.Nodes.Add("Machine List",45,46)
For Each $Machine in $MachineArray $MachineNode = $RootNode.Nodes.Add("$Machine",45,46) $MachineNode.tag=$Machine $Logs = $MachineNode.Nodes.Add("Logs",45,46) $Audit = $Logs.Nodes.Add("Audit",45,46) $Diagnostic = $Logs.Nodes.Add("Diagnostic",45,46) $Distribution = $Logs.Nodes.Add("Distribution",45,46) $Installation = $Logs.Nodes.Add("Installation",45,46) $Services = $MachineNode.Nodes.Add("Services",45,46) $CNCService = $Services.Nodes.Add("NSPIS CNC Software Distribution",45,46) $SU = $Services.Nodes.Add("SU",45,46) $TimeSync = $Services.Nodes.Add("TimeSync",45,46) Next
|
|
Top
|
|
|
|
#120037 - 2004-05-24 02:21 PM
Re: Treeview example
|
Rory Daniels
Getting the hang of it
Registered: 2003-02-25
Posts: 64
Loc: Bristol, UK
|
Thankx the code
Code:
$treeview.selectednode.text
Works fine. Is there any more detailed documentation other than the Kixforms Object Reference available on treeview. Currently I can get the parent of the node but I am not sure how to get the parents parent and I dont want to be bothering you all the time when I could be working it out myself.
Rory
|
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
1 registered
(Allen)
and 781 anonymous users online.
|
|
|