]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/framemanager.cpp
Fix wrong wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_CLICK name in the docs.
[wxWidgets.git] / src / aui / framemanager.cpp
index 9f4625708fb86fd55123d9ef17d4c01deaa842fa..3da7db209eff7e687dabc2180211f39790ea608d 100644 (file)
@@ -554,6 +554,7 @@ static void RenumberDockRows(wxAuiDockInfoPtrArray& docks)
 void wxAuiManager::SetActivePane(wxWindow* active_pane)
 {
     int i, pane_count;
+    wxAuiPaneInfo* active_paneinfo = NULL;
     for (i = 0, pane_count = m_panes.GetCount(); i < pane_count; ++i)
     {
         wxAuiPaneInfo& pane = m_panes.Item(i);
@@ -561,8 +562,18 @@ void wxAuiManager::SetActivePane(wxWindow* active_pane)
         if (pane.window == active_pane)
         {
             pane.state |= wxAuiPaneInfo::optionActive;
+            active_paneinfo = &pane;
         }
     }
+
+    // send the 'activated' event after all panes have been updated
+    if ( active_paneinfo )
+    {
+        wxAuiManagerEvent evt(wxEVT_AUI_PANE_ACTIVATED);
+        evt.SetManager(this);
+        evt.SetPane(active_paneinfo);
+        ProcessMgrEvent(evt);
+    }
 }