]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed Connect() use sample case in CreateControls() docs
authorJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 30 Sep 2008 16:50:31 +0000 (16:50 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 30 Sep 2008 16:50:31 +0000 (16:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/propgrid/editors.h
interface/wx/propgrid/editors.h

index 1058989c474326368277d85f5a51952516522000..d07e7adf0d464055bb79761bae1f83010761d154 100644 (file)
@@ -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().
index e0c8555ede527e672026dcbc3c55a52c2b57a9e3..77ae7bf00594cb5ce67cef3cc5e813148478afeb 100644 (file)
@@ -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().