manager should always be set in pane events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -645,6 +645,7 @@ wxFrame* wxAuiManager::GetFrame() const
|
|||||||
wxAuiManager* wxAuiManager::GetManager(wxWindow* window)
|
wxAuiManager* wxAuiManager::GetManager(wxWindow* window)
|
||||||
{
|
{
|
||||||
wxAuiManagerEvent evt(wxEVT_AUI_FINDMANAGER);
|
wxAuiManagerEvent evt(wxEVT_AUI_FINDMANAGER);
|
||||||
|
evt.SetManager(NULL);
|
||||||
evt.ResumePropagation(wxEVENT_PROPAGATE_MAX);
|
evt.ResumePropagation(wxEVENT_PROPAGATE_MAX);
|
||||||
if (!window->ProcessEvent(evt))
|
if (!window->ProcessEvent(evt))
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -3476,6 +3477,7 @@ void wxAuiManager::OnRender(wxAuiManagerEvent& evt)
|
|||||||
void wxAuiManager::Render(wxDC* dc)
|
void wxAuiManager::Render(wxDC* dc)
|
||||||
{
|
{
|
||||||
wxAuiManagerEvent e(wxEVT_AUI_RENDER);
|
wxAuiManagerEvent e(wxEVT_AUI_RENDER);
|
||||||
|
e.SetManager(this);
|
||||||
e.SetDC(dc);
|
e.SetDC(dc);
|
||||||
ProcessMgrEvent(e);
|
ProcessMgrEvent(e);
|
||||||
}
|
}
|
||||||
@@ -3932,6 +3934,7 @@ void wxAuiManager::OnLeftUp(wxMouseEvent& event)
|
|||||||
{
|
{
|
||||||
// fire button-click event
|
// fire button-click event
|
||||||
wxAuiManagerEvent e(wxEVT_AUI_PANEBUTTON);
|
wxAuiManagerEvent e(wxEVT_AUI_PANEBUTTON);
|
||||||
|
e.SetManager(this);
|
||||||
e.SetPane(m_action_part->pane);
|
e.SetPane(m_action_part->pane);
|
||||||
e.SetButton(m_action_part->button->button_id);
|
e.SetButton(m_action_part->button->button_id);
|
||||||
ProcessMgrEvent(e);
|
ProcessMgrEvent(e);
|
||||||
@@ -4181,6 +4184,7 @@ void wxAuiManager::OnPaneButton(wxAuiManagerEvent& evt)
|
|||||||
{
|
{
|
||||||
// fire pane close event
|
// fire pane close event
|
||||||
wxAuiManagerEvent e(wxEVT_AUI_PANECLOSE);
|
wxAuiManagerEvent e(wxEVT_AUI_PANECLOSE);
|
||||||
|
e.SetManager(this);
|
||||||
e.SetPane(evt.pane);
|
e.SetPane(evt.pane);
|
||||||
ProcessMgrEvent(e);
|
ProcessMgrEvent(e);
|
||||||
|
|
||||||
@@ -4194,6 +4198,7 @@ void wxAuiManager::OnPaneButton(wxAuiManagerEvent& evt)
|
|||||||
{
|
{
|
||||||
// fire pane close event
|
// fire pane close event
|
||||||
wxAuiManagerEvent e(wxEVT_AUI_PANEMAXIMIZE);
|
wxAuiManagerEvent e(wxEVT_AUI_PANEMAXIMIZE);
|
||||||
|
e.SetManager(this);
|
||||||
e.SetPane(evt.pane);
|
e.SetPane(evt.pane);
|
||||||
ProcessMgrEvent(e);
|
ProcessMgrEvent(e);
|
||||||
|
|
||||||
@@ -4207,6 +4212,7 @@ void wxAuiManager::OnPaneButton(wxAuiManagerEvent& evt)
|
|||||||
{
|
{
|
||||||
// fire pane close event
|
// fire pane close event
|
||||||
wxAuiManagerEvent e(wxEVT_AUI_PANERESTORE);
|
wxAuiManagerEvent e(wxEVT_AUI_PANERESTORE);
|
||||||
|
e.SetManager(this);
|
||||||
e.SetPane(evt.pane);
|
e.SetPane(evt.pane);
|
||||||
ProcessMgrEvent(e);
|
ProcessMgrEvent(e);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user