Recent

Author Topic: Unwanted forcing of FormSyle to fsStayOnTop in main form  (Read 458 times)

simsee

  • Full Member
  • ***
  • Posts: 236
Unwanted forcing of FormSyle to fsStayOnTop in main form
« on: April 07, 2026, 04:22:08 pm »
I have a complex application with a main form, which must have FormStyle=fsNormal, and other auto-created forms that are displayed as needed, which must instead have FormStyle=fsStayOnTop. For some strange reason, after I set FormStyle=fsNormal for the main form via the object inspector, the FormStyle reverts to fsStayOnTop after each compilation.

In addition to the unwanted visual effect with the other forms, for some strange reason, if FormStyle=fsStayOnTop in the main form, memory leaks also occur during execution (I presume due to interdependencies between components).

Why this strange behavior? I'm on Windows 11, with Lazarus version 4.6. Thanks.

jamie

  • Hero Member
  • *****
  • Posts: 7651
Re: Unwanted forcing of FormSyle to fsStayOnTop in main form
« Reply #1 on: April 07, 2026, 11:53:43 pm »
When you make a change in the OI, make sure you click on something else in the OI to ensure the property was updated in the LFM.

Sometimes I have seen where If I jump directly to the Compile menu the last made change in the OI does not take effect.

Jamie
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018