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.
Change History (7)
Changed 9 years ago by mghie
comment:2 Changed 3 years ago by vadz
- Keywords raymond-chen-needed added
- Summary changed from wxMSW: Default button problem to wxMSW can show 2 default buttons in a dialog
Changed 3 years ago by awi
comment:3 Changed 3 years ago by awi
- Keywords SetDefault SetDefaultStyle added; SetDefault() raymond-chen-needed removed
- Patch set
- Version changed from stable-latest to dev-latest