Solved

minimize maximize form

Posted on 1998-03-04
4
689 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
  • 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now