I need a metod to detect only the Pane node present in the in the form
Actually i use the following metod:
I have a form with 4 pane, all are not visible unless i select the one i want to use in the menubar.
Each Pane tag are set "pnl" + pane name, tha's the same item name use in the menubar
Basically i read every node in the MainForm and by the tag i can detect the pane i'm looking for to set it visibile and hide the others
There're better metods?
Actually i use the following metod:
I have a form with 4 pane, all are not visible unless i select the one i want to use in the menubar.
Each Pane tag are set "pnl" + pane name, tha's the same item name use in the menubar
Basically i read every node in the MainForm and by the tag i can detect the pane i'm looking for to set it visibile and hide the others
There're better metods?
Find Pane:
Sub mnuMainBar_Action
Dim mi As MenuItem = Sender
Dim s As String
Dim n As Node
' Disattivo tutti i pannelli tranne quello selezionato e pulisco la ricerca
For Each n As Node In MainForm.RootPane.GetAllViewsRecursive
s=n.Tag
If s.Length>=3 Then
If s="pnl"&sForm Then
n.Visible=True
n.Enabled=True
Else
If s.SubString2(0,3)="pnl" Then
n.Visible=False
n.Enabled=False
End If
End If
End If
Next
End Sub