MDI Application

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
LVL 1
keithcslAsked:
Who is Participating?
 
jhuntConnect With a Mentor Commented:
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
 
keithcslAuthor Commented:
Edited text of question
0
 
pjdbCommented:
If it's a problem of showing duration, you create it hidden and then make it visible

JDB
0
 
keithcslAuthor Commented:
pjdb,
thanks for the comment. however, an MDI child form cannot be made not visible.

jhunt
thanks for the help...

regards
Keith
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.