wxBitmapBundle and wxAuiToolbar, buttons are too large.

Tony Kennedy <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Hi all,

I've just migrated from wx 3.1.5 to 3.2.6.

One thing I've changed is to use a wxBitmapBundle with a wxAuiToolbar. The 
wxBitmapBundle is created from a SVG file and I've set the default size to 
be 512x512.

When the wxAuiToolbar is create, the icon is now massive. And even if I use 
the following to create a smaller bitmap, the toolbar icon is still massive.
m_toolBar->SetToolBitmapSize( wxSize(10,10)  );
wxBitmap smallBitmap = myBundle.GetBitmap(wxSize(10,10)));
m_toolBar->AddTool(ID_RICHTEXT_EDITOR, "test", smallBitmap, "test");

Am I doing something wrong? I understand that the bitmap bundle should be 
the right size for the toolbar.

Thanks in advance for any advice,

Tony.

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wx-users/d1cdebb1-64b4-4ea2-a6e3-85344e006378n%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.