Solved

minimize maximize form

Posted on 1998-03-04
4
695 Views
Last Modified: 2010-04-04
I have 2 form, when I minimize the second form, I see the minimize box in the corner of my desktop (just like each form in delphi). Then I use Application.minimize to really minimise everything but when I maximize, the second form didn't maximize automatically. I use windowstate to change the state of the form in the OnResize to maximize the form but it didn't work.

I also try WM_SYSCOMMAND but it not work.

Any idea how to do that?

I really appreciate if you can provide me a code sample to do the job.

Thanks
0
Comment
Question by:sierra20
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 3

Expert Comment

by:Matvey
ID: 1360084
It might get stuck if you maximize form inside the onResize event. I mean you maximize =>resize=>OnResize event=>LOOP??

Wild guess...

Good luck!
Matvey
0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1360085
Hi

Also look at TApplication's OnRestore event, which can be used to restore each child form.

JB
0
 

Author Comment

by:sierra20
ID: 1360086
The OnRestore event is the answer to my question.

Thanks JimBob.

0
 
LVL 5

Accepted Solution

by:
JimBob091197 earned 50 total points
ID: 1360087
Hi sierra20

I will answer the question then, assuming you are using Application.OnRestore := MyRestoreEvent;

Cheers,
JB
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question