chuck3e Active Member Licensed User Longtime User Jan 6, 2014 #1 When I do this: Code: Copy For Each Counts As Node In MainForm.RootPane.GetAllViewsRecursiveFor I get this: (AnchorPane) AnchorPane[id=Panel] (Pane) Pane[id=Pane1] (Label) Label[id=Label2, styleClass=label] (LabelSkin) LabelSkin[id=Label2, styleClass=label] (LabeledText) LabeledText@71183515[styleClass=text] (Button) Button[id=Button01, styleClass=button] (ButtonSkin) ButtonSkin[id=Button01, styleClass=button] What parameter name(s) can I search on to eliminate all but the (Button) one.
When I do this: Code: Copy For Each Counts As Node In MainForm.RootPane.GetAllViewsRecursiveFor I get this: (AnchorPane) AnchorPane[id=Panel] (Pane) Pane[id=Pane1] (Label) Label[id=Label2, styleClass=label] (LabelSkin) LabelSkin[id=Label2, styleClass=label] (LabeledText) LabeledText@71183515[styleClass=text] (Button) Button[id=Button01, styleClass=button] (ButtonSkin) ButtonSkin[id=Button01, styleClass=button] What parameter name(s) can I search on to eliminate all but the (Button) one.
Erel B4X founder Staff member Licensed User Longtime User Jan 6, 2014 #2 Code: Copy For Each Counts As Node In ... If Counts Is Button Then Dim b As Button = Counts ... End If Next Upvote 0
Code: Copy For Each Counts As Node In ... If Counts Is Button Then Dim b As Button = Counts ... End If Next
chuck3e Active Member Licensed User Longtime User Jan 6, 2014 #3 Erel said: Code: Copy For Each Counts As Node In ... If Counts Is Button Then Dim b As Button = Counts ... End If Next Click to expand... Thanks Erel! I hope I can give you more of a challenge some day. Upvote 0
Erel said: Code: Copy For Each Counts As Node In ... If Counts Is Button Then Dim b As Button = Counts ... End If Next Click to expand... Thanks Erel! I hope I can give you more of a challenge some day.