iOS Question Page1_Resize ??

ilan

Expert
Licensed User
Longtime User
hi

i have a question, on every app start i load a layout to page1 after app_start event was fired the page1_resize event is called and there i re-size all my views.

no the question is if i load a different layout to my page when my app is running (not on app start)
will Page1_Resize event again called?

i dont want to make the resize in the designer, i want to make it in my code like this

(i know i can create a new sub or just call the page1_resize sub after layout is loaded but i dont want to do it twice, thats why i am asking...)

thanx
 

ilan

Expert
Licensed User
Longtime User

the reason i would like to stretch the layout is, i am making a game and i would like that all objects are in the same place and same size, doesnot matter what device you use.
the same princip as in my libgdx games.

like this i create levels in designer and just stretch all views on any screen size.

when you say the page_resize will called only when the page is resized that means only at app start right? so when i load a new layout and would like to stretch all my views i need to call that sub again?

by unchecking the "Handler Resize Event" option in the layout then the page_resize event will be called?? if i check "Handler Resize Event" then page_resize will not be called?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…