@Also, if i replace wxID_ok with something else, it won't close the dialog... odd.
In that case, you can use SetAffirmativeId() for OK and SetEscapeId() for CANCEL on your custom buttons.
In that case, you can use SetAffirmativeId() for OK and SetEscapeId() for CANCEL on your custom buttons.