Solved

minimize maximize form

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

864 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

25 Experts available now in Live!

Get 1:1 Help Now