[Lazarus] Detecting desktop area size
Bart
bartjunk64 at gmail.com
Fri Apr 1 00:27:18 CEST 2011
On 4/1/11, Paul Ishenin <webpirat at mail.ru> wrote:
> This was tested on OSX during the development too.
Nice.
> Looks like search does not work on your PC anymore.
(Well, it is slow on my 10 year old machine, but is still works most
of the time.
I also searched the forum and wiki.)
> Look at TForm.Monitor property.
Well, I did just that, but I just couldn't figure it out.
I finally used something like
Screen.MonitorFromPoint(ClientToSCreen(Self.BoundsRect.TopLeft)) to
get the monitor the form was currently on...
Just thougth to ask if someone had a simpler solution ;-)
Thanks to all for the help.
Bart
More information about the Lazarus
mailing list