Jump to content
Mabig

How to never hide second form ?

Recommended Posts

Hi,

 

I've got  2 forms, MainForm, and second form "form2".

form2 is alwasontop and have to be like this everytime.

 

But when i minimize MainForm, "form 2" minimize too , that not i wanted !

 

Any idea ?

Share this post


Link to post

It depends on the overall behavior you looking to achieve. The easiest solution might be to change the mainForm to Form2. You can do that in code by setting Application.MainForm. You could use the OnActivate event handler of the individual forms to change the behavior depending on which form is active too.

Share this post


Link to post

hum, MainForm have to enable visible or not Form2, so it may staying MainForm.

But when user minimize MainForm, Form2 have to be visibled, always on top.

 

I think that in Delphi, whe mainform is minimized, it minimize all project forms by default.

How do "cut" this functionality ?

Share this post


Link to post

What you should probably do is drop a breakpoint and follow all of the code that happens when you minimize the main form. You'll see what is being done in FMX and what you may need to change to get the behavior you want. 

Edited by Brandon Staggs

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

×