[Lazarus] Detecting desktop area size

Sven Barth pascaldragon at googlemail.com
Thu Mar 31 17:32:10 CEST 2011


Am 31.03.2011 17:15, schrieb Kjow:
> 2011/3/31 Sven Barth<pascaldragon at googlemail.com>:
>> What about this:
>>
>> Screen.MonitorFromWindow(YourForm.Handle);
>>
>> It returns a TMonitor.
>>
>> Regards,
>> Sven
>
> Maybe a little OT, but is it possible to change screen resolution
> (e.g. on a native 19200x1200 set 800x600) in a crossplatform way?
> I need this for fullscreen apps (opengl in first).

I'm not really confident in this, but I believe if you tell OpenGL to be 
fullscreen in that or that resolution it will switch to that automatically.

Regards,
Sven




More information about the Lazarus mailing list