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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...