[Lazarus] How to hide pop-up menu before taking a screen snapshot?

Jean SUZINEAU jean.suzineau at wanadoo.fr
Fri Feb 12 21:23:19 CET 2021


Le 12/02/2021 à 17:39, Bo Berglund via lazarus a écrit :
>    Application.QueueAsyncCall(@CopyScreenRect(0), 0); // <== ERROR here

I'm not sure, but QueueAsyncCall just need the address of your callback:

Application.QueueAsyncCall(@CopyScreenRect, 0);

The 0 given to QueueAsyncCall will end up as the Value passed as arg 
parameter to your CopyScreenRect method when it will called.



More information about the lazarus mailing list