wxAUI pane closed. Reopen failed ?

Lothar Behrens lothar.behrens at lollisoft.de
Tue Aug 28 05:04:58 PDT 2007


Hi,


I have created a pane, that later will be closed with the close button
for that pane.

While trying to reopen I would like to avoit creating a new one but
showing the old one
if closed.

The oldpg variable is always not NULL. I expected it will be NULL, if
I close the pane.

Whats wrong ?

Thanks, Lothar

(wxMac 2.8.4 on Mac OS X 10.3.9 with PPC)

void MyFrame::CreateOrShowPane() {
	wxPropertyGrid* oldpg = (wxPropertyGrid*)
m_mgr.GetPane("Properties").window;

	if (oldpg != NULL) {
		m_mgr.GetPane(wxT("Properties")).Show();
		return ERR_NONE;
	}

       // Do create the pane, if not yet done.

       // ...
}







More information about the wx-users mailing list