monitor screen orientation

joel2009

Member
Licensed User
I know there are libraries for setting screen orentation, but what about watching for screen rotation? The only work around I could think of is using a tmer tick to cross refrence a previous value. example:
Sub app start
screen.width = a
end sub

Sub timer1_tick
if screenwidth=a then
else
resize controls
screenwidth=a
end sub

obviously not a word for word working example, just an explaned concept. This way seems waaayyyy to memory intensive though. Is there a library or a way to hook the screen rotation event from the door library? I have searched with no avail and yet i'm pretty sure its possible.
 

corwin42

Expert
Licensed User
Longtime User
Hi!

I normally use the resize event from the formlib to monitor screen orientation changes. If you have multiple forms you have to create a new formlib object for every form but it works well in my applications.

Greetings,
Markus
 
Top