Miguel Gimenez - 2019-08-24

Connect() is not deprecated, Bind() is just a preferred option.

Connect() is not formally deprecated due to its existing widespread usage, it has no advantages compared to Bind()

I am mostly concerned by supression of wxNewId(): using wxID_ANY would force a call to GetId() after window creation in order to retrieve the assigned Id, or calling GetId() everywhere the Id is needed (p.e. Connect() or Bind())

IMHO the Connect() part don't need changes, and the wxNewId can be changed by a call to GetId() assigning the value to the same variable for compatibility with current code. This change is valid for all current wx versions. Example:

If the current code is

const long wxsBitmapIconEditorDlg::ID_RADIOBUTTON1 = wxNewId();
...
NoImage = new wxRadioButton(this, ID_RADIOBUTTON1, _("No image"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_RADIOBUTTON1"));

change it to

NoImage = new wxRadioButton(this, wxID_ANY, _("No image"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_RADIOBUTTON1"));
ID_RADIOBUTTON1 = NoImage->GetId();

defining ID_RADIOBUTTON1 as long in the class.