restore the default bitmap icons size to 16*15, making them larger if necessary is enough and doesn't result in having ugly 16*16 bitmaps in a 24*24 button rectangle

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-02-04 12:19:45 +00:00
parent 5d55031c21
commit 040d3c2ebf
4 changed files with 24 additions and 21 deletions

View File

@@ -403,8 +403,15 @@ public:
wxSize GetMargins() const;
/**
Returns the size of bitmap that the toolbar expects to have. The default
bitmap size is 16 by 15 pixels.
Returns the size of bitmap that the toolbar expects to have.
The default bitmap size is platform-dependent: for example, it is 16*15
for MSW and 24*24 for GTK. This size does @em not necessarily indicate
the best size to use for the toolbars on the given platform, for this
you should use @c wxArtProvider::GetNativeSizeHint(wxART_TOOLBAR) but
in any case, as the bitmap size is deduced automatically from the size
of the bitmaps associated with the tools added to the toolbar, it is
usually unnecessary to call SetToolBitmapSize() explicitly.
@remarks Note that this is the size of the bitmap you pass to AddTool(),
and not the eventual size of the tool button.