Use wxBitmapBundle in wxBitmapButtonXmlHandler
Allow specifying bundles and not just individual bitmaps in XRC for this control.
This commit is contained in:
@@ -38,7 +38,7 @@ wxBitmapButtonXmlHandler::SetBitmapIfSpecified(wxBitmapButton* button,
|
||||
{
|
||||
wxXmlNode* const node = GetParamNode(paramName);
|
||||
if ( node )
|
||||
(button->*setter)(GetBitmap(node));
|
||||
(button->*setter)(GetBitmapBundle(node));
|
||||
}
|
||||
|
||||
wxObject *wxBitmapButtonXmlHandler::DoCreateResource()
|
||||
@@ -55,7 +55,7 @@ wxObject *wxBitmapButtonXmlHandler::DoCreateResource()
|
||||
{
|
||||
button->Create(m_parentAsWindow,
|
||||
GetID(),
|
||||
GetBitmap(wxT("bitmap"), wxART_BUTTON),
|
||||
GetBitmapBundle(wxT("bitmap"), wxART_BUTTON),
|
||||
GetPosition(), GetSize(),
|
||||
GetStyle(wxT("style")),
|
||||
wxDefaultValidator,
|
||||
|
||||
Reference in New Issue
Block a user