Best event choice to set the Base form size and position

Hello everyone,

When I close one form and open another, the form seems to open dead center of the monitor, and it seems to be the size which I have saved it in while editing. I’d like for these forms to start at a particular size and position on my screen, and I am getting this accomplished by utilizing the “open document” event. However, as the form is opening, it first starts again dead center and then after a split second it repositions itself where I would like for it to be. Is there a better event which someone could recommend for this behavior to be eliminated?

Version: 7.5.2.2 (X86_64) / LibreOffice Community
Build ID: 53bb9681a964705cf672590721dbc85eb4d0c3a2
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: en-CA (en_CA); UI: en-US
Calc: threaded

Have had a look at some databases here: Have it maximized and without toolbars by Tools → Customize → Events → OpenDocument. It’s the same yo have done it. This macro also runs while opening a form for editing. So position and size are the same while editing and while starting for input data.

Robert, if you were intending on including a link in your post, it did not happen.

Nonetheless, I maximized the form and saved it, then I removed all the items in LayoutManager, but there is still a bit of flickering. Although, nothing that one can not live with.

No, I didn’t want to attach a database. But here is one (German) database, which opens the forms in full screen mode without menu bar:
LO_Verein_202211.odb (851.4 KB)
It opens here like any other documents in my system: Window seems to grow a little bit and then the window has been maximized.

1 Like

This is a lot of knowledge, I’ll be going through this tonight. Thank you Robert.

The flickering is by design I guess. Same effect as in my case. Nonetheless, thank you very much for your help Robert!