How to get the pane name of the selected wxAuiNoteook?
Luís Brás
lfdbras at gmail.com
Wed Mar 26 17:21:15 PDT 2008
Hi all,
>From the AuiDemo sample example:
void MyFrame::OnNotebookPageClose(wxAuiNotebookEvent& evt)
{
wxAuiNotebook* ctrl = (wxAuiNotebook*)evt.GetEventObject();
if (ctrl->GetPage(evt.GetSelection())->IsKindOf(CLASSINFO(wxHtmlWindow)))
{
int res = wxMessageBox(wxT("Are you sure you want to
close/hide this notebook page?"),
wxT("wxAUI"),
wxYES_NO,
this);
if (res != wxYES)
evt.Veto();
}
}
How cant I get the pane name from he selected page?
I've tried:
((wxAuiManagerEvent*)ctrl->GetPage(evt.GetSelection()))->pane->name
but get error.
Thanks in advance...
More information about the wx-users
mailing list