JohnC Expert Licensed User Longtime User Dec 31, 2019 #1 Usually you can create an event sub by typing "Sub" then a space then the TAB key, then select an object, then select an event of that object. Well, if I am in a code module, and select the Page object, "Page_Resize" event is missing from the list of events for the page object: So that it will create this event: B4X: Private Sub pg_Resize (Width As Float, Height As Float) End Sub
Usually you can create an event sub by typing "Sub" then a space then the TAB key, then select an object, then select an event of that object. Well, if I am in a code module, and select the Page object, "Page_Resize" event is missing from the list of events for the page object: So that it will create this event: B4X: Private Sub pg_Resize (Width As Float, Height As Float) End Sub
Erel B4X founder Staff member Licensed User Longtime User Dec 31, 2019 #2 It is a bit confusing but the Resize event actually belongs to panels. Page.RootPanel event name is set to be the same as the Page's event name so it looks like the event belongs to the page.
It is a bit confusing but the Resize event actually belongs to panels. Page.RootPanel event name is set to be the same as the Page's event name so it looks like the event belongs to the page.