Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-04

Screenshot without the gnome applications menu

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dave Coventry

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?

Reply by email

Hans-Peter Diettrich
to Dave Coventry
Show quoted text 10 lines
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

Reply by email

Dave Coventry
to leledumbo

Thanks, guys.

I located the thread and it was exactly what I was after.

leledumbo wrote 15 lines
> I remember something like Screen.WorkArea, mentioned by Paul a few days ago. Followed by CopyRect-ing the canvas, you got the screenshot. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Screenshot-without-the-gnome-applications-menu-tp2776018p2778636.html Sent from the Free Pascal - Lazarus mailing list . -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email