[Lazarus] Detecting desktop area size
Sven Barth
pascaldragon at googlemail.com
Thu Mar 31 16:35:47 CEST 2011
Am 31.03.2011 16:15, schrieb Bart:
> On 3/31/11, Paul Ishenin<ip at kmiac.ru> wrote:
>> TScreen.Monitors[i].WorkareaRect
>
> This seems to work for Win and Linux/GTK2.
>
> This raises yet another question though.
> How do I know on which monitor my form is?
> (I only have one monitor, so I cannot test this)
What about this:
Screen.MonitorFromWindow(YourForm.Handle);
It returns a TMonitor.
Regards,
Sven
More information about the Lazarus
mailing list