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:
@@ -622,9 +622,7 @@ void MyFrame::BuildDataViewCtrl(wxPanel* parent, unsigned int nPanel, unsigned l
|
||||
m_ctrl[0] =
|
||||
new wxDataViewCtrl( parent, ID_MUSIC_CTRL, wxDefaultPosition,
|
||||
wxDefaultSize, style );
|
||||
m_ctrl[0]->Connect(wxEVT_CHAR,
|
||||
wxKeyEventHandler(MyFrame::OnDataViewChar),
|
||||
NULL, this);
|
||||
m_ctrl[0]->Bind(wxEVT_CHAR, &MyFrame::OnDataViewChar, this);
|
||||
|
||||
m_music_model = new MyMusicTreeModel;
|
||||
m_ctrl[0]->AssociateModel( m_music_model.get() );
|
||||
|
Reference in New Issue
Block a user