?
Solved

minimize maximize form

Posted on 1998-03-04
4
Medium Priority
?
696 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 150 total points
ID: 1360087
Hi sierra20

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

Cheers,
JB
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

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