Be prudent with dialog files: dialog_exit_base.cpp is automatically generated by wxFormBuilder from dialog_exit_base.fbp
(in fact files named dialog_xxx_base.cpp or named dialog_xxx_fbp.cpp and .h are always generated from dialog_xxx_base.fbp).
Therefore dialog_exit_base.fbp should be modified using wxFormBuilder, and the corresponfing files .cpp and .h should be recreated by wxFormBuilder.
And the patch should contain the *.fbp file.
Otherwise changes will be lost the next time the main file is modified by wxFormBuilder.
Also notice all dialogs created via wxFormBuilder *should* be derived from DIALOG_SHIM with dialog_shim.h included.
(seen some other dialogs for samples)
if dialog_exit_base.fbp does not derive dialog_exit_base from DIALOG_SHIM, please add it.
As a consequence adding this->SetFocus(); is source is useless, this is made by DIALOG_SHIM (which also allows remenber the size and position of the dialog during the session.)
Be prudent with dialog files: dialog_ exit_base. cpp is automatically generated by wxFormBuilder from dialog_ exit_base. fbp xxx_base. fbp). exit_base. fbp should be modified using wxFormBuilder, and the corresponfing files .cpp and .h should be recreated by wxFormBuilder. exit_base. fbp does not derive dialog_exit_base from DIALOG_SHIM, please add it.
(in fact files named dialog_xxx_base.cpp or named dialog_xxx_fbp.cpp and .h are always generated from dialog_
Therefore dialog_
And the patch should contain the *.fbp file.
Otherwise changes will be lost the next time the main file is modified by wxFormBuilder.
Also notice all dialogs created via wxFormBuilder *should* be derived from DIALOG_SHIM with dialog_shim.h included.
(seen some other dialogs for samples)
if dialog_
As a consequence adding this->SetFocus(); is source is useless, this is made by DIALOG_SHIM (which also allows remenber the size and position of the dialog during the session.)