Recent

Author Topic: [Closed] Effect of main form minimizing, other forms !  (Read 1254 times)

loaded

  • Hero Member
  • *****
  • Posts: 878
[Closed] Effect of main form minimizing, other forms !
« on: March 18, 2022, 09:13:15 am »
Hi All,
When the main form is minimized, other forms in the project are minimized.
When the main form is minimized, are there any settings to preserve the current appearance of the other forms of the project on the screen?
Or is this behavior by design?
« Last Edit: March 18, 2022, 05:59:13 pm by loaded »
The more memory computers have, the less memory people seem to use. 😅

Thaddy

  • Hero Member
  • *****
  • Posts: 18684
  • Jungle wars. And failing health it seems.
Re: Effect of main form minimizing, other forms !
« Reply #1 on: March 18, 2022, 10:16:52 am »
By design: it does not make sense to keep other forms open when the main form is minimized.
Minimizing the main form should and does -by default -minimize the whole application.
There are tricks to prevent this - ownership - but these are not recommended and can only be done in code, not the designer..
« Last Edit: March 18, 2022, 10:21:44 am by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

loaded

  • Hero Member
  • *****
  • Posts: 878
Re: Effect of main form minimizing, other forms !
« Reply #2 on: March 18, 2022, 11:45:42 am »
Got it, thanks a lot for the info Thaddy
The more memory computers have, the less memory people seem to use. 😅

tetrastes

  • Hero Member
  • *****
  • Posts: 733
Re: Effect of main form minimizing, other forms !
« Reply #3 on: March 18, 2022, 12:05:02 pm »
By design: it does not make sense to keep other forms open when the main form is minimized.
Minimizing the main form should and does -by default -minimize the whole application.
There are tricks to prevent this - ownership - but these are not recommended and can only be done in code, not the designer..

For me, on the contrary, there is sense to keep other forms open when the main form is minimized. And all my apps behave so.
And you can easily do this in designer by setting in Object Inspector form property ShowInTaskBar to stAlways for all forms, that you need not to be minimized with the main form.
« Last Edit: March 18, 2022, 12:09:51 pm by tetrastes »

balazsszekely

  • Guest
Re: Effect of main form minimizing, other forms !
« Reply #4 on: March 18, 2022, 12:09:46 pm »
@loaded

Quote
When the main form is minimized, other forms in the project are minimized.
When the main form is minimized, are there any settings to preserve the current appearance of the other forms of the project on the screen?
Or is this behavior by design?
It is by design, but you can change it. Did you try to catch WM_SYSCOMMAND combined with SC_MINIMIZE? You should be able to do this relatively easily at least on windows.

loaded

  • Hero Member
  • *****
  • Posts: 878
Re: Effect of main form minimizing, other forms !
« Reply #5 on: March 18, 2022, 05:58:53 pm »
tetrastes thanks a lot for the info yes that worked (except it created an icon for each form in the taskbar)  :)
Master GetMem, yes, this is a good idea, I'll try it at a convenient time.
Thank you all so much for taking your precious time to reply. Respects.
The more memory computers have, the less memory people seem to use. 😅

 

TinyPortal © 2005-2018