Screen orientation issue

ddahan

Member
Licensed User
Longtime User
Hi,
I'm writing an application that suppose to run on both portrait and landscape screen orientations.
I'm using fgControls library to switch screen orientation.
The issue I'm facing is that ChangeOrientation function is switching the screen orientation but the form is not changing dimensions according to the orientation - the form stays in his initial orientation.
I have attached a simple code that shows the problem (on VGA screen).

thanks,
David.
 
D

Deleted member 103

Guest
Hi,

you need the library "formlib.dll" add. I added a line in your code.

Ciao,
Filippo
 

Attachments

  • OrientationTrialsV1.sbp
    1.2 KB · Views: 256

ddahan

Member
Licensed User
Longtime User
Hi Pachuquin and Filippo,

Many thanks for responding.

Pachuquin, I already tried to change Form1.Width and Form1.Height but it did not had any visible impact.

Filippo, your solution is working perfectly. I appreciate your help, thanks.

regards,
David.
 
Top