moore_it Well-Known Member Licensed User Longtime User Sep 2, 2024 #1 Hi all, i've five panes in mainform, when click on a pane this should become the last in views order. It's possible to do that at runtime ? Thanks in advice.
Hi all, i've five panes in mainform, when click on a pane this should become the last in views order. It's possible to do that at runtime ? Thanks in advice.
William Lancee Well-Known Member Licensed User Longtime User Sep 2, 2024 #2 You can remove the node from MainForm.RootPane and then add it again. It will be the last one. p.RemoveNodeFromParent MainForm.RootPane.AddNode(p, ...) Unless you mean reordering the position on the screen. Then you have to loop through the views and change their position. You can use MainForm.RootPane.GetAllViewsRecursive Upvote 0
You can remove the node from MainForm.RootPane and then add it again. It will be the last one. p.RemoveNodeFromParent MainForm.RootPane.AddNode(p, ...) Unless you mean reordering the position on the screen. Then you have to loop through the views and change their position. You can use MainForm.RootPane.GetAllViewsRecursive
Erel B4X founder Staff member Licensed User Longtime User Sep 3, 2024 #3 Tip: you will never see Pane in my code. Use B4XView instead. The API is simpler and richer and it is cross platform. You can use B4XView.SendToBack to make it the last view. Upvote 0
Tip: you will never see Pane in my code. Use B4XView instead. The API is simpler and richer and it is cross platform. You can use B4XView.SendToBack to make it the last view.
moore_it Well-Known Member Licensed User Longtime User Sep 3, 2024 #4 Thanks for help work perfect. B4X: Private Sub pane_MousePressed (EventData As MouseEvent) Dim view As B4XView = Sender view.BringToFront End Sub Upvote 0
Thanks for help work perfect. B4X: Private Sub pane_MousePressed (EventData As MouseEvent) Dim view As B4XView = Sender view.BringToFront End Sub