Fix changing the size of the bitmaps in wxMSW wxButton.

The size of the wxImageList used to store the bitmaps wasn't updated before
and so the old bitmap size continued to be used even after changing the actual
bitmaps.

Recreate wxXPButtonImageData to ensure that the image list size does change.

Closes #12909.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-03-14 11:54:39 +00:00
parent 32eec436ed
commit ce39ca74bc
2 changed files with 43 additions and 1 deletions

View File

@@ -78,7 +78,11 @@
get reasonably good behaviour on all platforms.
All of the bitmaps must be of the same size and the normal bitmap must be
set first (to a valid bitmap), before setting any other ones.
set first (to a valid bitmap), before setting any other ones. Also, if the
size of the bitmaps is changed later, you need to change the size of the
normal bitmap before setting any other bitmaps with the new size (and you
do need to reset all of them as their original values can be lost when the
normal bitmap size changes).
The position of the image inside the button be configured using
SetBitmapPosition(). By default the image is on the left of the text.