Replace Connect() with Bind() in all samples and utils too
Still use Connect() in unit tests which were written explicitly for it and in EventConnector, which can't use Bind() as it uses a variable for the event type. No real changes, just use the newer and more convenient function.
This commit is contained in:
@@ -116,9 +116,7 @@ SimpleTransientPopup::SimpleTransientPopup( wxWindow *parent, bool scrolled )
|
||||
// Keep this code to verify if mouse events work, they're required if
|
||||
// you're making a control like a combobox where the items are highlighted
|
||||
// under the cursor, the m_panel is set focus in the Popup() function
|
||||
m_panel->Connect(wxEVT_MOTION,
|
||||
wxMouseEventHandler(SimpleTransientPopup::OnMouse),
|
||||
NULL, this);
|
||||
m_panel->Bind(wxEVT_MOTION, &SimpleTransientPopup::OnMouse, this);
|
||||
|
||||
wxStaticText *text = new wxStaticText( m_panel, wxID_ANY,
|
||||
wxT("wxPopupTransientWindow is a\n")
|
||||
|
Reference in New Issue
Block a user