On Thursday 31 of March 2011 01:06:48 Bart wrote: > Hi, > > Is there any (more or less) reliable way to detect the size of the > desktop (that is: on the active screen, the space a form can occupy so > that it will take in account the presence of a taskbar etc.) > > I need something like this to keep a form that I create at runtime in > view on the desktop (it's initial size and widht/height) depend on the > contents it must display). > > I know how to do it on Windows. > Linux (GTK2) and MAC would be nice.
GetMonitorInfo(), GetSystemMetrics() SM_CXSCREEN, SM_CYSCREEN,SM_CXVIRTUALSCREEN,SM_CYVIRTUALSCREEN doesn't help ? > > Bart > > -- > _______________________________________________ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus