Jump to content
Ian Branch

Minimising Mainform but leaving sub forms normal

Recommended Posts

Hi Team,

Some time in the not too distant past I sought a method for minimizing the main form but not any open sub forms.

I 'sourced' the technique from somewhere but cannot for the life of me remember what was required, nor, as I have the source code of the relevant App it is working in, can I divine what I did to make it work. 😞

It is going to be something simple but I just can't see it. 😞

Appreciate any thoughts/suggestions on the minimizing.  Don't need comments on my memory. 😉

 

Regards & TIA,

Ian

Edited by Ian Branch
Correction to Subject.

Share this post


Link to post

Hi Ian,

 

please give your topic a meaningful subject.

Share this post


Link to post

I am trying to remember if I've seen this done in any app before, but I am coming up short?

What happens to child windows if main window is set invisible, I wonder?

 

Share this post


Link to post

Hi Lars,

You would then need to put something in the Sub forms to make the Mainform visible again.

I don't have that.

Ian

Share this post


Link to post

One alternative could be to have an permanently invisible main form, so that the perceived mainform also is a child?

Share this post


Link to post

Hi Lars,

Yes I have seen that technique but it isn't what I have working here.

This is so frustrating. 😞

Ian

Share this post


Link to post

What about setting Owner/Parent of the children to nil?
(I am just throwing pasta at the wall here now)

Share this post


Link to post

Hmm.  Where does that happen?

If it is with this code "  TGenreTypesForm.Create(Self).ShowModal" then this works in the Working App.

Share this post


Link to post

It depends on the window ownership (aka popup parent) relationships between your forms. What is that in your case? 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×