[AUI] Notifying user clicking the close button on a AUI managed
window
Eran Ifrah
eran.ifrah at gmail.com
Thu Aug 16 08:38:37 PDT 2007
Actually, you dont need event for that.
To update your menu, you capture thet EVT_UPDATE_UI event of the menu item,
and in it, you test something like this:
void MyFrame::OnUpdateUI(wxUpdateUIEvent &e)
{
// get the pane info from the AUI manager, and query whether is it visible
// the name 'MyPaneName' is the name given to the pane when adding it
// to the AUI manager
wxAuiPaneInfo &info =3D m_mgr.GetPane(wxT("MyPaneName"));
if(info.IsOk()){
event.Check(info.IsShown());
}
}
This is how I do it.
Regards,
Eran
On 8/16/07, Terry Farnham <TerryF at pipeworks.com> wrote:
>
> I use these event handlers in my frames event handler table.
>
> EVT_AUI_PANE_CLOSE(MyFrame::OnPaneClose)
> EVT_AUINOTEBOOK_PAGE_CLOSE(wxID_ANY, MyFrame::OnNotebookPageClose)
>
> Hopefully they work for you also.
>
> Regards,
>
> Terry
>
> -----Original Message-----
> From: Mario Figueiredo [mailto:marfig at gmail.com]
> Sent: Thursday, August 16, 2007 5:29 AM
> To: wx-users at lists.wxwidgets.org
> Subject: [AUI] Notifying user clicking the close button on a AUI managed
> window
>
> Hello everyone,
>
> I can't seem to find a way to be notified of mouse clicks on AUI managed
> windows that where constructed with close buttons. I need this to
> programatically uncheck the View menu item that controls that window
> visibility.
>
> What's the event that I can tap into that tells me when these close
> buttons where clicked?
>
> TIA,
> Mario Figueiredo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
-- =
Eran Ifrah
eran.ifrah at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070816/d72=
80025/attachment.htm
More information about the wx-users
mailing list