Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDI Application

Status
Not open for further replies.

indrahig

Programmer
Mar 23, 2004
63
ID
Hi,
Is there any ways to show second Child Form from First Child Form in MDI Application, so that the First Child will be temporary disable until the second one closed? And still can access other child form (except the First one) in that application..
 
I have some thoughts on this...

1. You'll have to create the Second Child with the main form (MDIParent) as the owner, not the First Child.

2. When you open the Second Child, you could set a flag in the First Child, possibly using the Tag property of the TForm object. In the OnActivate of the First Child, you look to see if the flag is set and switch focus to the Second Child instead of showing the First Child.

3. Alternatively, you could use the MDIChildren property of the MDIParent to determine if the Second Child is available and switch focus from there.

-Dell
 
My original language is not English, so I have to aplologize if my English is not good.

I have a Main form (MDI Form), and let just say two kinds of MDI child forms.

The first child is created from the main form and the second one is created from the first child (the owner is still the Main Form).

I want the first child to be disabled until the second child is closed.

Thanks Hilfy..
And I'm sorry, I accidentally posted this thread twice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top