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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user