[Lazarus] Screenshot without the gnome applications menu

Hans-Peter Diettrich DrDiettrich1 at aol.com
Tue Apr 5 00:49:16 CEST 2011


Dave Coventry schrieb:
> I am using
> 
> 
>   ScreenDC := GetDC(0);
>   MyBitmap.LoadFromDevice(ScreenDC);
>   ReleaseDC(0,ScreenDC);
> 
> To grab a screenshot of my desktop. Is there any way of working out
> the size of the gmone application menu so that I can exclude it from
> my screen grab?

I remember something like Screen.WorkArea, mentioned by Paul a few days ago.

DoDi





More information about the Lazarus mailing list