CreateXXXButtonSizer functions with just wxCLOSE flag: Close button won't close dialog
|Reported by:||snowleopard2||Owned by:||VZ|
If you call:
to add a Close button to a dialog, then at runtime clicking the Close button will not close the dialog and hitting ESC on the keyboard won't do anything either. However, using wxCANCEL will work.
Explicitly setting either wxCLOSE or wxCLOSE (depending on which is present) as the escape ID fixes it, patch attached.
Change History (5)
Changed 14 months ago by snowleopard2
comment:3 Changed 13 months ago by VZ
- Owner set to VZ
- Resolution set to fixed
- Status changed from confirmed to closed