]> git.saurik.com Git - wxWidgets.git/commit
Allow using custom labels for wxGenericMessageDialog buttons.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Aug 2010 21:48:21 +0000 (21:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Aug 2010 21:48:21 +0000 (21:48 +0000)
commitd20ba5f860c0ccfdbbd26a29e53b31f7319e06f6
treeddc64171c0fb3fc456ff7b3339b2b91151f7bcca
parentb14cca2a84340b5411accff8fc440fbf3cc9b723
Allow using custom labels for wxGenericMessageDialog buttons.

Custom labels set for wxGenericMessageDialog buttons were simply ignored as it
used CreateSeparatedButtonSizer() to create the actual buttons which in turn
always used the standard labels.

Fix this by explicitly creating the buttons with custom labels if necessary.

This also fixes custom label support in wxGenericRichMessageDialog deriving
from this class.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/generic/msgdlgg.h
include/wx/msgdlg.h
src/generic/msgdlgg.cpp