Ticket #9528 (closed defect: fixed)
wxMSW can show 2 default buttons in a dialog
|Reported by:||mghie||Owned by:||vadz|
|Keywords:||wxButton SetDefault SetDefaultStyle||Cc:||mghie|
there is a problem with default buttons on MSW, more than one button can have the default appearance. Tested with 2.8 branch on Windows 2000 (compiled with MSVC++ 2003) and with SVN on Windows XP (compiled with MSVC++ 2008). Attached screen shot shows the problem, to reproduce simply open the generic colour chooser in the dialog sample (the OK button is visible as the default one), press the left mouse button on the Cancel button, drag the caret outside of the button and release the left button. Now both the OK and the Cancel button have the default border, and the Cancel button is focused.
There are more problems when SetDefault() is called explicitly in code, but that one is easiest to reproduce.