Here is the deal. The basic form is set to fsNormal. This main form is maximized in full screen using a floating toolbar. A toolbar is a regular form with a style set to fsStayOnTop.
In most cases, this works as expected. Basic shapes are displayed, and the toolbar floats on top of it.
Sometimes (it’s a scavenger to find a reproducible set of steps), when Alt-Tabbing to and from other applications (or when you click on the Delphi application icon on the taskbar), the following symptoms may occur:
When alt-tabbing is far from a Delphi application, the floating top form fsStayOnTopremains on top of other applications. Therefore, if I use alt-tab for Firefox, then the floating menu is also on top of Firefox.
When alt-tabbing from another application to a Delphi application, the floating menu is not displayed (since it is located behind the main form fsNormal).
Is this a known bug or are there any hacks to make it work? It also seems to happen most often when multiple copies of the application are running (they don’t have any interaction between them and they should run in their own Windows sandboxes).
It is as if Delphi is confused which window should be on top, and changes them or changes the floating shape in order to stay in any mode.
fsStayOnTop? fsStayOnTop, , .