Board index » cppbuilder » MDI Form Calls MDI form

MDI Form Calls MDI form

Hi,

Is there a way to wait for a MDI(open from an other MDI) to close, so that
the MDI, form who opend the 2e MDI form, detect it?

Regards

Johan

 

Re:MDI Form Calls MDI form


Simply show the form using ShowModal() instead of Show().  ShowModal()
doesn't return until the form closes.

Gambit

Quote
"Johan Leroy" <johan.le...@pandora.be> wrote in message

news:3d87db78$1@newsgroups.borland.com...
Quote
> Is there a way to wait for a MDI(open from an other MDI)
> to close, so that the MDI, form who opend the 2e MDI form,
> detect it?

Re:MDI Form Calls MDI form


Thats not so simple because the forms are dynamicly created

"Remy Lebeau [TeamB]" <gambi...@yahoo.com> schreef in bericht
news:3d87e7ea$3@newsgroups.borland.com...

Quote
> Simply show the form using ShowModal() instead of Show().  ShowModal()
> doesn't return until the form closes.

> Gambit

> "Johan Leroy" <johan.le...@pandora.be> wrote in message
> news:3d87db78$1@newsgroups.borland.com...

> > Is there a way to wait for a MDI(open from an other MDI)
> > to close, so that the MDI, form who opend the 2e MDI form,
> > detect it?

Re:MDI Form Calls MDI form


What's not so simple about it?  MDI forms are still forms like any other.
Dynamically created or otherwise, they can still be shown modally.

What does your actual code look like that is preventing you from using
ShowModal()?

Gambit

Quote
"Johan Leroy" <johan.le...@pandora.be> wrote in message

news:3d881d32$1@newsgroups.borland.com...
Quote
> Thats not so simple because the forms are dynamicly created

Re:MDI Form Calls MDI form


The moment you call createform the form is showed, so you can't use
showmodal()

"Remy Lebeau [TeamB]" <gambi...@yahoo.com> schreef in bericht
news:3d882584$1@newsgroups.borland.com...

Quote
> What's not so simple about it?  MDI forms are still forms like any other.
> Dynamically created or otherwise, they can still be shown modally.

> What does your actual code look like that is preventing you from using
> ShowModal()?

> Gambit

> "Johan Leroy" <johan.le...@pandora.be> wrote in message
> news:3d881d32$1@newsgroups.borland.com...
> > Thats not so simple because the forms are dynamicly created

Other Threads