ivanomonti Expert Licensed User Longtime User Dec 5, 2014 #1 Hi community; how can I know the father of a panel view !!
Erel B4X founder Staff member Licensed User Longtime User Dec 7, 2014 #2 You can use this code: B4X: Dim no As NativeObject = panel1 Dim parent As View = no.GetField("superview") Upvote 0
You can use this code: B4X: Dim no As NativeObject = panel1 Dim parent As View = no.GetField("superview")
H Hugh Thomas Member Licensed User Longtime User May 18, 2015 #3 Is there an easy way to determine the Page that a given view is in? I know I can just call the above "get parent" code repeatedly to walk my way back up the tree, but how do I tell when I've reached the Page? Hugh Upvote 0
Is there an easy way to determine the Page that a given view is in? I know I can just call the above "get parent" code repeatedly to walk my way back up the tree, but how do I tell when I've reached the Page? Hugh
Erel B4X founder Staff member Licensed User Longtime User May 19, 2015 #4 There is no simple way to get the page from a view. Calling parent will never return the page. Only the page's main panel. What do you need it for? Upvote 0
There is no simple way to get the page from a view. Calling parent will never return the page. Only the page's main panel. What do you need it for?
H Hugh Thomas Member Licensed User Longtime User May 19, 2015 #5 No problem, it turns out I don't need it. I'm still coming to grips with how things work in B4i. Hugh Upvote 0
No problem, it turns out I don't need it. I'm still coming to grips with how things work in B4i. Hugh