Thanks,
Nick
Depending on how much memory your child screens use though, you might want
to consider not destroying them once they have been created, and if they
have to be shown again just setting them to visible. They'll load quicker
and retain the user settings from when the user last saw the screen.
EVT_CLOSE is called when you close a window.
Cheers
Matt
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-u...@lists.wxwidgets.org
> For additional commands, e-mail: wx-use...@lists.wxwidgets.org
>
>
2) Instead of keeping a pointer to the frame when
you know that it can go bad when the frame closes,
keep member variables containing a unique string
for each frame. Perhaps a numeric string created
from the frames address. When you create a frame,
create the name and call "SetName" for the new
frame. Once each frame has a name you can use the
wxWindow funciton
wxWindow::FindWindowByName
and it will return a wxWindow *, or
NULL if the frame does
not exist.
---
Jon
O. Wyss
--
See wyoEditor at "http://freshmeat.net/projects/wyoeditor/"
Is EVT_CLOSE what you ar elooking for? See wxCloseEvent docs.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!