From: Jaakko Salli Date: Tue, 30 Sep 2008 16:50:31 +0000 (+0000) Subject: Fixed Connect() use sample case in CreateControls() docs X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7eaed395dd7174051bd3ff7e1ed46d9c7cda87cc?ds=sidebyside Fixed Connect() use sample case in CreateControls() docs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/propgrid/editors.h b/include/wx/propgrid/editors.h index 1058989c47..d07e7adf0d 100644 --- a/include/wx/propgrid/editors.h +++ b/include/wx/propgrid/editors.h @@ -118,8 +118,9 @@ public: @code // Relays wxEVT_COMMAND_TEXT_UPDATED events of primary editor // control to the OnEvent. - propgrid->Connect(control->GetId(), wxEVT_COMMAND_TEXT_UPDATED, - wxCommandEventHandler(wxPropertyGrid::OnCustomEditorEvent)); + control->Connect(control->GetId(), wxEVT_COMMAND_TEXT_UPDATED, + wxCommandEventHandler(wxPropertyGrid::OnCustomEditorEvent), + NULL, propgrid); @endcode OnCustomEditorEvent will then forward events, first to wxPGEditor::OnEvent() and then to wxPGProperty::OnEvent(). diff --git a/interface/wx/propgrid/editors.h b/interface/wx/propgrid/editors.h index e0c8555ede..77ae7bf005 100644 --- a/interface/wx/propgrid/editors.h +++ b/interface/wx/propgrid/editors.h @@ -78,8 +78,9 @@ public: @code // Relays wxEVT_COMMAND_TEXT_UPDATED events of primary editor // control to the OnEvent. - propgrid->Connect(control->GetId(), wxEVT_COMMAND_TEXT_UPDATED, - wxCommandEventHandler(wxPropertyGrid::OnCustomEditorEvent)); + control->Connect(control->GetId(), wxEVT_COMMAND_TEXT_UPDATED, + wxCommandEventHandler(wxPropertyGrid::OnCustomEditorEvent), + NULL, propgrid); @endcode OnCustomEditorEvent will then forward events, first to wxPGEditor::OnEvent() and then to wxPGProperty::OnEvent().