projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix the menu item bitmaps for wxMSW;
[wxWidgets.git]
/
src
/
univ
/
button.cpp
diff --git
a/src/univ/button.cpp
b/src/univ/button.cpp
index f04966be286c83a4632741964eeb9bf3938f5b55..7bda74e449451a0aafc15ed36fbe2d4765171f00 100644
(file)
--- a/
src/univ/button.cpp
+++ b/
src/univ/button.cpp
@@
-128,9
+128,9
@@
bool wxButton::Create(wxWindow *parent,
SetLabel(label);
if (bitmap.Ok())
SetLabel(label);
if (bitmap.Ok())
- SetImageLabel(bitmap); // Set
Best
Size called by SetImageLabel()
+ SetImageLabel(bitmap); // Set
Initial
Size called by SetImageLabel()
else
else
- Set
Best
Size(size);
+ Set
Initial
Size(size);
CreateInputHandler(wxINP_HANDLER_BUTTON);
CreateInputHandler(wxINP_HANDLER_BUTTON);
@@
-327,12
+327,14
@@
void wxButton::SetImageMargins(wxCoord x, wxCoord y)
m_marginBmpX = x + 2;
m_marginBmpY = y + 2;
m_marginBmpX = x + 2;
m_marginBmpY = y + 2;
- Set
Best
Size(wxDefaultSize);
+ Set
Initial
Size(wxDefaultSize);
}
}
-
void
wxButton::SetDefault()
+
wxWindow *
wxButton::SetDefault()
{
m_isDefault = true;
{
m_isDefault = true;
+
+ return wxButtonBase::SetDefault();
}
// ============================================================================
}
// ============================================================================