summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d786bf8)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8385
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxBitmapButton *button = new wxBitmapButton(m_ParentAsWindow,
GetID(),
{
wxBitmapButton *button = new wxBitmapButton(m_ParentAsWindow,
GetID(),
- GetBitmap(_T("bitmap"), GetSize()),
- //GetBitmap(_T("bitmap")),
+ GetBitmap(_T("bitmap")),
GetPosition(), GetSize(),
GetStyle(_T("style"), wxBU_AUTODRAW),
wxDefaultValidator,
GetPosition(), GetSize(),
GetStyle(_T("style"), wxBU_AUTODRAW),
wxDefaultValidator,
if (GetBool(_T("default"), 0) == 1) button->SetDefault();
SetupWindow(button);
if (GetBool(_T("default"), 0) == 1) button->SetDefault();
SetupWindow(button);
+ if (!GetParamValue(_T("selected")).IsEmpty())
+ button->SetBitmapSelected(GetBitmap(_T("selected")));
+ if (!GetParamValue(_T("focus")).IsEmpty())
+ button->SetBitmapFocus(GetBitmap(_T("focus")));
+ if (!GetParamValue(_T("disabled")).IsEmpty())
+ button->SetBitmapDisabled(GetBitmap(_T("disabled")));
+