]> git.saurik.com Git - wxWidgets.git/commit
Fix handling of help buttons with non-empty label under OS X.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 11 Aug 2010 16:03:46 +0000 (16:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 11 Aug 2010 16:03:46 +0000 (16:03 +0000)
commit01495abf8755b0be46b4c65d6c7c48e9460f102b
tree9e6df75ca906bae98ed3171f903fabb88f515ebc
parent34a1414265a0ec5831be286eb35e481d486e61da
Fix handling of help buttons with non-empty label under OS X.

Creating a button with wxID_HELP and a non-empty label used to always show
this label, even if it was just a standard "Help" or "&Help". This didn't work
at all as the help buttons under OS X are too small to show any label.

To fix this, use normal buttons, not help ones, if a really custom label is
used to ensure that it can be seen. And to still use the correct help buttons
in as many cases as possible, ignore the standard "Help" label and its
variants and don't show it at all.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
interface/wx/button.h
src/osx/button_osx.cpp
src/osx/cocoa/button.mm