Replace wxEvtHandler::Connect() with Bind() in the docs
In the docs, replace mentions of wxEvtHandler::Connect() with wxEvtHandler::Bind(), mostly to match the actual code but also because Bind() is the recommended way to dynamically bind events. Closes https://github.com/wxWidgets/wxWidgets/pull/2298
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
and use the event table @c EVT_FSWATCHER macro to handle these events in a
|
and use the event table @c EVT_FSWATCHER macro to handle these events in a
|
||||||
derived class method. Alternatively, you can use
|
derived class method. Alternatively, you can use
|
||||||
wxFileSystemWatcher::SetOwner() to send the events to another object. Or
|
wxFileSystemWatcher::SetOwner() to send the events to another object. Or
|
||||||
you could use wxEvtHandler::Connect() with @c wxEVT_FSWATCHER to handle
|
you could use wxEvtHandler::Bind() with @c wxEVT_FSWATCHER to handle
|
||||||
these events in any other object. See the fswatcher sample for an example
|
these events in any other object. See the fswatcher sample for an example
|
||||||
of the latter approach.
|
of the latter approach.
|
||||||
|
|
||||||
|
@@ -131,7 +131,7 @@ public:
|
|||||||
Notice that the generic wxInfoBar implementation handles the button
|
Notice that the generic wxInfoBar implementation handles the button
|
||||||
events itself and so they are not propagated to the info bar parent and
|
events itself and so they are not propagated to the info bar parent and
|
||||||
you need to either inherit from wxInfoBar and handle them in your
|
you need to either inherit from wxInfoBar and handle them in your
|
||||||
derived class or use wxEvtHandler::Connect(), as is done in the dialogs
|
derived class or use wxEvtHandler::Bind(), as is done in the dialogs
|
||||||
sample, to handle the button events in the parent frame.
|
sample, to handle the button events in the parent frame.
|
||||||
|
|
||||||
@param btnid
|
@param btnid
|
||||||
|
@@ -28,7 +28,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Constructor for a persistent window object.
|
Constructor for a persistent window object.
|
||||||
|
|
||||||
The constructor uses wxEvtHandler::Connect() to catch
|
The constructor uses wxEvtHandler::Bind() to catch
|
||||||
wxWindowDestroyEvent generated when the window is destroyed and call
|
wxWindowDestroyEvent generated when the window is destroyed and call
|
||||||
wxPersistenceManager::SaveAndUnregister() when this happens. This
|
wxPersistenceManager::SaveAndUnregister() when this happens. This
|
||||||
ensures that the window properties are saved and that this object
|
ensures that the window properties are saved and that this object
|
||||||
|
@@ -91,9 +91,8 @@ public:
|
|||||||
Initial size for control(s).
|
Initial size for control(s).
|
||||||
|
|
||||||
@remarks
|
@remarks
|
||||||
- Unlike in previous version of wxPropertyGrid, it is no longer
|
- It is not necessary to call wxEvtHandler::Bind() for interesting
|
||||||
necessary to call wxEvtHandler::Connect() for interesting editor
|
editor events. All events from controls are automatically
|
||||||
events. Instead, all events from control are now automatically
|
|
||||||
forwarded to wxPGEditor::OnEvent() and wxPGProperty::OnEvent().
|
forwarded to wxPGEditor::OnEvent() and wxPGProperty::OnEvent().
|
||||||
*/
|
*/
|
||||||
virtual wxPGWindowList CreateControls( wxPropertyGrid* propgrid,
|
virtual wxPGWindowList CreateControls( wxPropertyGrid* propgrid,
|
||||||
|
Reference in New Issue
Block a user