B4J Question Page Sizes

Pelky

Active Member
Licensed User
Longtime User
When I initialize a page ...

Page initialize and add:
    Page2.Initialize
    Page3.Initialize
    B4XPages.AddPage("B4XSetups", Page2)
    B4XPages.AddPage("B4XTableDays", Page3)

when I actually open either one of them them they take the entire screen. I have a background which I don't want to loose. The new open page is resizable so the background can be made to show but I want the page to open at a smaller size. I have looked at using variants but that does not do it.
Basically I want it to open page as a smaller window

If anyone can assist me with this it would be appreciated.
 

Pelky

Active Member
Licensed User
Longtime User
Add to B4XPage_Created of the new page:
B4X:
Dim f As Form = B4XPages.GetNativeParent(Me)
f.WindowWidth = 300
f.WindowHeight = 300
f.Resizable = False
Such a simple and elegant solution... Once again you have come to my aid and I thank you very much...
 
Upvote 0
Top