Files
wxWidgets/include/wx/osx
Vadim Zeitlin ce63f2e9eb Make hack for button creation in wxOSX more robust.
Don't crash when creating a plain wxButton with wxBU_NOTEXT style. This
happened because we skipped creating the peer (real implementation) in this
case entirely on the assumption that we were creating a wxBitmapButton, but
this is not necessarily the case. So now test that the creation of the peer is
really disabled before skipping it (this required adding ShouldCreatePeer()
accessor).

Merging wxWidgetImpl::CreateButton() and CreateBitmapButton() (and the same
thing for toggle buttons) would still be a better solution but while it's
trivial to do for Cocoa, it isn't for Carbon. And we can't use a single
function for Cocoa but different functions for Carbon, so for now just
continue to use this hack.

Closes #13622.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72896 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-04 23:54:37 +00:00
..
2012-06-14 21:53:06 +00:00
2008-07-31 09:59:04 +00:00
2012-05-20 20:29:22 +00:00
2012-07-10 23:51:44 +00:00
2009-12-03 17:20:15 +00:00
2012-07-01 15:46:26 +00:00
2010-07-13 13:29:58 +00:00
2011-06-09 00:28:28 +00:00
2012-06-14 21:55:28 +00:00
2010-07-13 13:29:58 +00:00
2011-02-16 16:37:24 +00:00
2012-02-27 15:37:24 +00:00
2008-09-02 16:53:23 +00:00