J John M. Kelly Member Aug 19, 2021 #1 This is likely very simple. I am trying to use B4XPages. My start page comes up at 600 x 600. When I change a page I want it to start at say 1000 x 300. I can set the view to 1000 x 300 using a variant. I removed the 600 x 600 variant. But when switching to the new page that display is at 600 x 600. I can expand it to see the full 1000 x 300. But how do I get the new page to start at 1000 x 300?
This is likely very simple. I am trying to use B4XPages. My start page comes up at 600 x 600. When I change a page I want it to start at say 1000 x 300. I can set the view to 1000 x 300 using a variant. I removed the 600 x 600 variant. But when switching to the new page that display is at 600 x 600. I can expand it to see the full 1000 x 300. But how do I get the new page to start at 1000 x 300?
Erel B4X founder Staff member Licensed User Longtime User Aug 19, 2021 #2 Don't use layout variants. Code: Copy Dim f As Form = B4XPages.GetNativeParent(Me) f.WindowWidth = 1000 f.WindowHeight = 300 Upvote 0
Don't use layout variants. Code: Copy Dim f As Form = B4XPages.GetNativeParent(Me) f.WindowWidth = 1000 f.WindowHeight = 300