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

2021-02-07 Thread Bo Berglund via lazarus
On Sun, 7 Feb 2021 17:16:31 +0300, Andrey Sobol via lazarus 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 i

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

2021-02-07 Thread Andrey Sobol via lazarus
Try to call Application.ProcessMessages(); after disable a popup menu. Andrey. On 07.02.2021 17:09, Bo Berglund via lazarus wrote: On Sun, 7 Feb 2021 14:01:46 +, Denis Kozlov via lazarus wrote: I had a similar experience with taking a screenshot programmatically. Simply waiting or proc

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

2021-02-07 Thread Bo Berglund via lazarus
On Sun, 7 Feb 2021 14:01:46 +, Denis Kozlov via lazarus wrote: > >I had a similar experience with taking a screenshot programmatically. >Simply waiting or processing application messages after hiding the form >often doesn't help, and results in a form being a part of the screenshot >anyway

Re: [Lazarus] Lazarus configuration - portable between versions?

2021-02-07 Thread Juha Manninen via lazarus
LazarusDirectory tag indeed has version dependent paths. I don't remember what exactly it is used for. The Recent file lists are not important. They are updated dynamically and old entries will go away. So, you can copy the whole configuration if you do some minor editing. Juha -- __

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

2021-02-07 Thread Denis Kozlov via lazarus
Hi, I had a similar experience with taking a screenshot programmatically. Simply waiting or processing application messages after hiding the form often doesn't help, and results in a form being a part of the screenshot anyway. I managed to work around it by forcing Windows to repaint everyth

Re: [Lazarus] Some IDE/LHelp issues

2021-02-07 Thread Andrey Sobol via lazarus
On 04.02.2021 16:39, Rolf Wetjen via lazarus wrote: Hi Andy I've patched LHelp.exe with lhelp_index_combine_04.patch. The "unknown" tab issue is partly solved. Now all tabs have a caption. There's one strange behaviour: [FPDoc Documentation], [Programmer' Guide], [Reference Guide] and [User's

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

2021-02-07 Thread Bo Berglund via lazarus
I have worked on a tool to copy a region of the Windows desktop for use in illustrations. The tool consists of a transparent form which is supposed to be located on top of the area to copy. This form has a pop-up menu where there are 3 items to select from: - Copy image - Copy position - Close Wh