Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Minimize main form, not app or other forms


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Jul 4, 2017 5:48 AM Last Post By: Mike Ver Hagen
Mike Ver Hagen

Posts: 10
Registered: 5/5/01
Minimize main form, not app or other forms  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 3, 2017 9:49 PM
In a Delphi XE6 VCL app, the user would like to minimize the main form while leaving all other forms open, so we cannot just minimize the app as would be the default behavior when the user clicks on the minimize button of the app's main form. The current behavior is to minimize the app and see its icon in the taskbar and restoring it works as expected.

I've seen many messages with techniques for other kinds of manipulation of minimization, but not one for this. I've also seen Peter Below recommend against setting the form's WindowState to wsMinimized, but maybe that was only in the context of some other desired result. Just setting the state in OnResize doesn't work because it is called at times other than just when the minimize button is clicked.
Dmitry Arefiev

Posts: 1,406
Registered: 12/7/03
Re: Minimize main form, not app or other forms  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 3, 2017 11:52 PM   in response to: Mike Ver Hagen in response to: Mike Ver Hagen
Wrong forum. Use https://forums.embarcadero.com/forum.jspa?forumID=95

--
With best regards,
Dmitry
Mike Ver Hagen

Posts: 10
Registered: 5/5/01
Re: Minimize main form, not app or other forms  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 4, 2017 5:48 AM   in response to: Dmitry Arefiev in response to: Dmitry Arefiev
Thanks. Something about my browser and the web-site had been dumping me in random places in the forum as I sought existing posts on this topic, and I neglected to realize that this had happened yet again when I posted this.

Dmitry Arefiev wrote:
Wrong forum. Use https://forums.embarcadero.com/forum.jspa?forumID=95

--
With best regards,
Dmitry
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02