Added size constants to allow drawn control parts to match the window variant,
initially on Mac git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -473,8 +473,16 @@ wxRendererMac::DrawComboBoxDropButton(wxWindow *win,
|
||||
const wxRect& rect,
|
||||
int flags)
|
||||
{
|
||||
int kind;
|
||||
if (flags & wxCONTROL_SIZE_SMALL)
|
||||
kind = kThemeArrowButtonSmall;
|
||||
else if (flags & wxCONTROL_SIZE_MINI)
|
||||
kind = kThemeArrowButtonMini;
|
||||
else
|
||||
kind = kThemeArrowButton;
|
||||
|
||||
DrawMacThemeButton(win, dc, rect, flags,
|
||||
kThemeArrowButton, kThemeAdornmentArrowDownArrow);
|
||||
kind, kThemeAdornmentArrowDownArrow);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -483,7 +491,13 @@ wxRendererMac::DrawPushButton(wxWindow *win,
|
||||
const wxRect& rect,
|
||||
int flags)
|
||||
{
|
||||
int kind;
|
||||
if (flags & wxCONTROL_SIZE_SMALL)
|
||||
kind = kThemeBevelButtonSmall;
|
||||
else
|
||||
kind = kThemeBevelButton;
|
||||
|
||||
DrawMacThemeButton(win, dc, rect, flags,
|
||||
kThemeBevelButton, kThemeAdornmentNone);
|
||||
kind, kThemeAdornmentNone);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user