C COBRASoft Active Member Licensed User Longtime User Apr 30, 2012 #1 Hey Erel, Could you please add a method to the core ViewWrapper to get the parent of a view? You have all the code you need in the BringToFront method . While you're add it, please add a method for the ViewGroup too... E.g. for my grid I could place all field of a record on a panel so they belong to the same Viewgroup. Changing the 'selected' state or so would become a lot easier. It would also help for building a treeview and so... Thanks! Greetings, Sigurd Last edited: Apr 30, 2012
Hey Erel, Could you please add a method to the core ViewWrapper to get the parent of a view? You have all the code you need in the BringToFront method . While you're add it, please add a method for the ViewGroup too... E.g. for my grid I could place all field of a record on a panel so they belong to the same Viewgroup. Changing the 'selected' state or so would become a lot easier. It would also help for building a treeview and so... Thanks! Greetings, Sigurd
J Jost aus Soest Active Member Licensed User Longtime User Apr 30, 2012 #2 I miss the good old Parent property from VB, too! +1 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 30, 2012 #3 Currently you can use this code: Code: Copy Sub GetParent(v As View) As View Dim r As Reflector r.Target = v Return r.RunMethod("getParent") End Sub Upvote 0
Currently you can use this code: Code: Copy Sub GetParent(v As View) As View Dim r As Reflector r.Target = v Return r.RunMethod("getParent") End Sub
C COBRASoft Active Member Licensed User Longtime User Apr 30, 2012 #4 Erel, I know, but it would be nice if you could add this to the core libs. Upvote 0