Link to home
Start Free TrialLog in
Avatar of LeTay
LeTay

asked on

Minimize forms sometime completely disappear

I have a Delphi application (XE2) where a menu is available on the main form
Selecting an item in the menu, and another form is shown.
When I click on the minimize _ on that form, it becomes ... minimize, and still of course accessible, as a smal rectangle just above the Windows menu bar, at the left bottom of the screen.
That is on my tower PC
When I run the application on other PCs, for example my portable PC, it behaves similarly.
But on some PC (also running Windows 10),simply minimizing the form and it completely disappear, with no way to get it back visible.
Avatar of Andrew Leniart
Andrew Leniart
Flag of Australia image

But on some PC (also running Windows 10),simply minimizing the form and it completely disappear, with no way to get it back visible.

Open task manager, locate the form/document in there and then right click and select "Switch to Front" (may say "Bring to Front") - that should make it reappear in my experience.

Hope that's helpful.

Regards, Andrew
Avatar of LeTay
LeTay

ASKER

Well, I know the switch to front but that is not what I try to achieve : i want the form to behave correctly, i.e., be possible to get it back normally
He LeTray,

I personally don't use Delphi and suspect it has something with that, so I can't offer any additional advice or suggestions in how to prevent the problem. The workaround is the best I can offer sorry.

Hopefully, some other experts that do have experience with Delphi will chime in and can offer some help.

Regards, Andrew
Avatar of LeTay

ASKER

Personally, I don't think that Delphi has something to see with this behavior.
But I may be wrong.
Avatar of Geert G
sometimes i maintain a menu item window
per window/form maintain a menu item and a subitem to min/max/bring to front/etc

somewhat like Delphi does

you can use the Screen.forms[] to get the list to iterate
Avatar of LeTay

ASKER

Thanks
When a form is minimize, what is the method to have it coming back at its normal size ?
What you set under forms property FormStyle and what under Position?
Do you have - by any chance secondary display configured - as extended - on left side?
If that is a case - then form is minimized to secondary screen.
Avatar of LeTay

ASKER

Only one display
Property FormStyle = fsNormal
Position = poDefaultPosOnly
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.