Solved

minimize maximize form

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 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