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:
@@ -28,7 +28,7 @@ public:
|
||||
/**
|
||||
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
|
||||
wxPersistenceManager::SaveAndUnregister() when this happens. This
|
||||
ensures that the window properties are saved and that this object
|
||||
|
Reference in New Issue
Block a user