[wx-dev] #9528: wxMSW: Default button problem

wxTrac noreply at wxsite.net
Tue Jun 3 00:38:11 PDT 2008


Ticket URL: <http://trac.wxwidgets.org/ticket/9528>

#9528: wxMSW: Default button problem
-----------------------------------+----------------------------------------
 Reporter:  mghie                  |       Owner:         
     Type:  defect                 |      Status:  new    
 Priority:  normal                 |   Milestone:         
Component:  wxMSW                  |     Version:  2.9-svn
 Keywords:  wxButton SetDefault()  |   Blockedby:         
    Patch:  0                      |    Blocking:         
-----------------------------------+----------------------------------------
 Hi,

 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.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/9528>


More information about the wx-dev mailing list