Friday, 15 May 2015

delphi - Only portrait orientation to a form on a FireMonkey Mobile Android application -



delphi - Only portrait orientation to a form on a FireMonkey Mobile Android application -

i developing mobile app delphi xe5, android platform.

i need 1 form in mobile firemonkey app maintain it's set orientation , not alter when device turned. other forms can alter orientation when device turned.

how can accomplish this?

delphi xe5 not provide setting on form this, , 1 cannot create 1 form never rotate whilst others do. can perhaps create work-around solution lot of testing required ensure works on devices. not idea.

the formpaint event fired after form repaints (when rotation changed , other actions). form height & width give current size , if have list of devices form sizes work out whether form in portrait / landscape mode. cannot forcefulness form orientation, can hide controls , display message.

not easy , perchance not worth effort.

android delphi delphi-xe5

No comments:

Post a Comment