Hi Bernd,
I saw the two examples, and i think now i have one clear idea of what i should do! I will see if i will manage.
So i will arrange the width, the location and the left of the objects!
so i will use
Code: Select all
on resizeStack newWidth,newHeight,oldWidth,oldHeight
send "adjust newWidth,newHeight,oldWidth,oldHeight" to me in 10 milliseconds
end resizeStack
So with the newWidth,newHeight,oldWidth,oldHeight i can know if the orientation changed from 1024x768 (landscape) to 768x1024 (portrait).
and then i will make one handler 'adjust' to arrange all what i have to arrange there.
But before to begin to make the code, i have one question that i would like to know, as the app should work also for iPhone! And i would like to code it 'well' from the beginning!
Before i saw the buttons deformed i was using the fullScreenMode thinking that it will work automatically for landscape, portrait and also in iPad and iPhone.
Now to avoid the deformation i deleted the line of fullScreenMode in my code.
So to pass from iPad size to iPhone size and control the portrait and landscape orientation i have to do all this with the resizeStack too? So not only the pass from 1024x768 to 768x1024, but also from the designed original size to the iPhone size??? Or the pass from iPad size to iPhone size is done 'automatically'???
Or maybe i have to use anyway the fullScreenMode to allow to pass from iPad size to iPhone size and then control the landscape or portrait orientation with the resizeStack?
Sorry if my questions seem 'stupid'! But the part belonging to change orientation or sizes of screen is the most difficult one for me to understand, and i don't know which is controlled automatically and which not.
Thanks in advance!
Regards,
fko