(Re)opening closed MDI child?

  • Thread starter Thread starter Sonnich Jensen
  • Start date Start date
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
 
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?
 
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?
 
Back
Top