B4i Question Page_Resize Event - Erel (first post)    Feb 23, 2020   (3 reactions) I use this code in some of the examples when I want to run something after the page was resized once:
Private Sub Application_Start (Nav As NavigationController)
...
If Page1.RootPanel.Width = 0 Or Page1.RootPanel.Height = 0 Then
Wait For Page1_Resize(Width As Int, Height As Int)
End If
'pa B4i Question How to use an icon+text in ToolBar buttons ? - marcick (first post)    Feb 05, 2023 Edit: in the page_resize event, I have started a timer 100mS and when it generate the event (after it exits the page_resize event) I rearrange the button bar elements.
It works, I don't know if it can be considered correct and safe. B4i Question Do not load 100%x and 100y in Page - Erel (first post)    Jul 23, 2020 Your code is wrong. Page_Resize can be raised multiple times. It will cause multiple layouts to be loaded.
There is also no reason for this code. Just create the layout with the designer and load it when the page is created. It is very simple. B4i Question B4XPages - run a sub on .ShowPage - luke2012 (first post)    Nov 18, 2021 Thank you for your suggestion (above you can see the relevant code).
Now the right item (clicked by the user within the "PageA") is loaded inside the "PageB", but I still have the same issue of the cutted page, i.e. scrolling the page only a part of the fields appear and the page ends without displa B4i Question Object was not initialized (UIView) BBScrollingLabel - Lucas Eduardo (first post)    Jun 30, 2020 My page resize event:
Private Sub Page_Resize(Width As Int, Height As Int)
If gmap.IsInitialized Then gmap.SetLayoutAnimated(0, 1, 0, 0, pnlMap.Width, pnlMap.Height)
End Sub B4i Question Page1_Resize ?? - Erel (first post)    Sep 01, 2015 (Why do you want to stretch your layout? There are much better options available with anchors and the designer script).
Page_Resize is called whenever the root panel is resized.
You can uncheck the "Handler Resize Event" option in the layout file if you don't want it to be resized automatically. B4i Question B4Xdrawer and SafeAreaInsets - Erel (first post)    Feb 15, 2023   (1 reaction) Private Sub Page1_Resize(Width As Int, Height As Int)
Dim r As Rect = Page1.SafeAreaInsets
Drawer.Resize(Width, Height)
Sleep(100)
CustomListView1.AsView.SetLayoutAnimated(0, r.Left, CustomListView1.AsView.Top, Drawer.LeftPanel.Width - r.Left, Height - r.Bottom - CustomListView1.AsVi B4i Tutorial Layouts, Pages and ViewControllers - Hugh Thomas (first post)    May 16, 2015 I'm using a TabBarController to manage my pages, and I need to know when the user has switch between pages. Page_Resize is only called the first time a page is displayed, or on orientation change, but not when the user just switches backwards and forwards between pages. Is there a TabBarController B4i Question Will be reloaded page when orientation change. - Erel (first post)    Nov 21, 2022 Yes, it is a mistake. It is much simpler to handle the page resizing with the designer. B4i Question Crash after page resize - pjrebordao    Aug 23, 2021 "4 TCC TCCAccessRequest + 0",
"5 TCC 91A3EAC0-DBEE-3D9A-96D8-EB25B6FDA3C1 + 12736",
"6 TCC 91A3EAC0-DBEE-3D9A-96D8-EB25B6FDA3C1 + 29292",
"7 libxpc.dylib 71B8F9FC-CEC6-34D9-94CD-3A801FE709BF + 99512",
"8 libxpc.dyli Page: 1   2   3   4   5   6   7   Powered by ColBERT |