Use Bind() instead of Connect() in wxWidgets code
Use more modern function which allows to avoid wxXXXEventHandler() macros use. No real changes.
This commit is contained in:
@@ -44,7 +44,7 @@ bool wxGenericStaticText::Create(wxWindow *parent,
|
||||
|
||||
SetLabel(label);
|
||||
SetInitialSize(size);
|
||||
Connect(wxEVT_PAINT, wxPaintEventHandler(wxGenericStaticText::OnPaint));
|
||||
Bind(wxEVT_PAINT, &wxGenericStaticText::OnPaint, this);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user