Hi, so we should slowly update the wxSmith code to use Bind instead of connect and other deprecated features...
The big question is how do we do this. I do not want introduce 100 #ifdegs to the code but a also do not want to break existing code...
One idea is to introduce a code comment with a flag that lets wxSmith recognize if the code is wx28 or wx3X compatible and let the code generation decide what to do...
Connect() is not deprecated, Bind() is just a preferred option.
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
change it to
defining ID_RADIOBUTTON1 as long in the class.