Solved

MDI Application

Posted on 1998-05-19
4
192 Views
Last Modified: 2010-04-06
hi

In an MDI application, i want to create a child in the maximised state. i have done so by creating a child form and setting it's window state property to wsMaximized

this works well, but whenever i create the form, ie

  ChildForm := TChildForm.Create(Application);

it appears in a default size, then maximises.

is there anyway of displaying the child form directly in a maximised state, ie i don't want to see it maximising on the screen, but appear maximised when it is created.

Keith
0
Comment
Question by:keithcsl
  • 2
4 Comments
 
LVL 1

Author Comment

by:keithcsl
Comment Utility
Edited text of question
0
 
LVL 1

Expert Comment

by:pjdb
Comment Utility
If it's a problem of showing duration, you create it hidden and then make it visible

JDB
0
 

Accepted Solution

by:
jhunt earned 30 total points
Comment Utility
Before you create the from:
LockWindowUpdate(ClientHandle);

After the form is crated and all handling is done
(file open etc..) then release the lock by:

LockWindowUpdate(0);

0
 
LVL 1

Author Comment

by:keithcsl
Comment Utility
pjdb,
thanks for the comment. however, an MDI child form cannot be made not visible.

jhunt
thanks for the help...

regards
Keith
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

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

12 Experts available now in Live!

Get 1:1 Help Now