Jump to content

Create subWindow


Guest

Recommended Posts

Message from: "Andy"

 

Hi Farshad,

 

As in the "Dynamic" demo , I can create a window.

But if I close one children the complet session is closed.

How can I close only a children ?

(I test with hide and the children disappear but how can I release memory ?)

 

Same with a modal window.(ShowModal)

Close of the modal window --> session stop

 

 

ps.: Thanks in concern of SpinEdit, you was right.

 

Regards

 

Andy

 

 

 

.

 

Link to comment
Share on other sites

Message from: "Farshad Mohajeri"

 

Hi Andy,

 

> Hi Farshad,

>

> As in the "Dynamic" demo , I can create a window.

> But if I close one children the complet session is closed.

> How can I close only a children ?

> (I test with hide and the children disappear but how can I release memory

> ?)

>

 

That's because in that specific demo all children has type of TMainForm.

TMainForm is registered as Application main form class and when it is

destroyed application is considered as terminated. It won't happen if you

create Windows of other types.

 

> Same with a modal window.(ShowModal)

> Close of the modal window --> session stop

>

 

Same as above.

 

Regards,

 

 

.

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...