Allow art provider IDs for the extra bitmaps in a wxBitmapButton. (The

param value is empty in this case, but there is still a valid bimap
node.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-05-17 03:51:51 +00:00
parent 6964cbbac9
commit 1d88e73a3f

View File

@@ -49,11 +49,11 @@ wxObject *wxBitmapButtonXmlHandler::DoCreateResource()
button->SetDefault(); button->SetDefault();
SetupWindow(button); SetupWindow(button);
if (!GetParamValue(wxT("selected")).IsEmpty()) if (GetParamNode(wxT("selected")))
button->SetBitmapSelected(GetBitmap(wxT("selected"))); button->SetBitmapSelected(GetBitmap(wxT("selected")));
if (!GetParamValue(wxT("focus")).IsEmpty()) if (GetParamNode(wxT("focus")))
button->SetBitmapFocus(GetBitmap(wxT("focus"))); button->SetBitmapFocus(GetBitmap(wxT("focus")));
if (!GetParamValue(wxT("disabled")).IsEmpty()) if (GetParamNode(wxT("disabled")))
button->SetBitmapDisabled(GetBitmap(wxT("disabled"))); button->SetBitmapDisabled(GetBitmap(wxT("disabled")));
return button; return button;