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:
parent
6964cbbac9
commit
1d88e73a3f
@ -49,11 +49,11 @@ wxObject *wxBitmapButtonXmlHandler::DoCreateResource()
|
||||
button->SetDefault();
|
||||
SetupWindow(button);
|
||||
|
||||
if (!GetParamValue(wxT("selected")).IsEmpty())
|
||||
if (GetParamNode(wxT("selected")))
|
||||
button->SetBitmapSelected(GetBitmap(wxT("selected")));
|
||||
if (!GetParamValue(wxT("focus")).IsEmpty())
|
||||
if (GetParamNode(wxT("focus")))
|
||||
button->SetBitmapFocus(GetBitmap(wxT("focus")));
|
||||
if (!GetParamValue(wxT("disabled")).IsEmpty())
|
||||
if (GetParamNode(wxT("disabled")))
|
||||
button->SetBitmapDisabled(GetBitmap(wxT("disabled")));
|
||||
|
||||
return button;
|
||||
|
Loading…
Reference in New Issue
Block a user