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
This commit is contained in:
Jaakko Salli
2008-09-30 16:50:31 +00:00
parent 6d24f9a939
commit 7eaed395dd
2 changed files with 6 additions and 4 deletions

View File

@@ -118,8 +118,9 @@ public:
@code @code
// Relays wxEVT_COMMAND_TEXT_UPDATED events of primary editor // Relays wxEVT_COMMAND_TEXT_UPDATED events of primary editor
// control to the OnEvent. // control to the OnEvent.
propgrid->Connect(control->GetId(), wxEVT_COMMAND_TEXT_UPDATED, control->Connect(control->GetId(), wxEVT_COMMAND_TEXT_UPDATED,
wxCommandEventHandler(wxPropertyGrid::OnCustomEditorEvent)); wxCommandEventHandler(wxPropertyGrid::OnCustomEditorEvent),
NULL, propgrid);
@endcode @endcode
OnCustomEditorEvent will then forward events, first to OnCustomEditorEvent will then forward events, first to
wxPGEditor::OnEvent() and then to wxPGProperty::OnEvent(). wxPGEditor::OnEvent() and then to wxPGProperty::OnEvent().

View File

@@ -78,8 +78,9 @@ public:
@code @code
// Relays wxEVT_COMMAND_TEXT_UPDATED events of primary editor // Relays wxEVT_COMMAND_TEXT_UPDATED events of primary editor
// control to the OnEvent. // control to the OnEvent.
propgrid->Connect(control->GetId(), wxEVT_COMMAND_TEXT_UPDATED, control->Connect(control->GetId(), wxEVT_COMMAND_TEXT_UPDATED,
wxCommandEventHandler(wxPropertyGrid::OnCustomEditorEvent)); wxCommandEventHandler(wxPropertyGrid::OnCustomEditorEvent),
NULL, propgrid);
@endcode @endcode
OnCustomEditorEvent will then forward events, first to OnCustomEditorEvent will then forward events, first to
wxPGEditor::OnEvent() and then to wxPGProperty::OnEvent(). wxPGEditor::OnEvent() and then to wxPGProperty::OnEvent().