Mabig 0 Posted May 12 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
Jim McKeeth 106 Posted May 12 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
Mabig 0 Posted May 14 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
Brandon Staggs 279 Posted May 15 (edited) 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 May 15 by Brandon Staggs 1 Share this post Link to post