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

Flávio Etrusco flavio.etrusco at gmail.com
Fri Feb 12 04:25:17 CET 2021


Menu handling in Windows is fully synchronous (in the main thread) so
you should use QueueAsyncCall:
https://wiki.freepascal.org/Asynchronous_Calls

Best regards,
Flávio

Em dom., 7 de fev. de 2021 às 11:20, Bo Berglund via lazarus
<lazarus at lists.lazarus-ide.org> escreveu:
>
> On Sun, 7 Feb 2021 17:16:31 +0300, Andrey Sobol via lazarus
> <lazarus at lists.lazarus-ide.org> wrote:
>
> >Try to call
> >
> >Application.ProcessMessages();
> >after disable a popup menu.
> >
> >Andrey.
> >
>
> Did not work. popmenu item still shows on captured image.
> The Sleep(300) in the menu handler does work OTOH...
>
>
> --
> Bo Berglund
> Developer in Sweden
>
> --
> _______________________________________________
> lazarus mailing list
> lazarus at lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus


More information about the lazarus mailing list