(Re)opening closed MDI child?

S

Sonnich Jensen

Hi

What do I do when an MDI form is closed and it is opened again?
Do I have to recreate it?
Can I rely on the previous form? (I have it as a private var so I can communicate with it)
I am new to MDI, so ideas please :)


2: I have a "close", how can I update that to "disabled" when there are no MDI windows?

WBR
Sonnich
 
J

Jeff Johnson

What do I do when an MDI form is closed and it is opened again?
Do I have to recreate it?
Can I rely on the previous form? (I have it as a private var so I can
communicate with it)
I am new to MDI, so ideas please :)

What do you WANT to do with it? In other words, what do you want to happen
when the form is opened again? Standard Windows behavior is that an MDI form
represents an instance of something. (Think Excel spreadsheet or Word
document.) If you close that window, the instance is gone. You never
"re-open" that window. You might open a NEW window, but if you want your
document back you have to reload it.
2: I have a "close", how can I update that to "disabled" when there are no
MDI windows?

You have a "close" WHAT? Button? Menu item? Giraffe?
 
P

Phil Hunt

Can't you hide it ?



Jeff Johnson said:
What do you WANT to do with it? In other words, what do you want to happen
when the form is opened again? Standard Windows behavior is that an MDI
form represents an instance of something. (Think Excel spreadsheet or Word
document.) If you close that window, the instance is gone. You never
"re-open" that window. You might open a NEW window, but if you want your
document back you have to reload it.


You have a "close" WHAT? Button? Menu item? Giraffe?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top