close button better positioning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -296,8 +296,10 @@ void wxAuiDefaultTabArt::DrawTab(wxDC* dc,
|
|||||||
else
|
else
|
||||||
bmp = m_disabled_close_bmp;
|
bmp = m_disabled_close_bmp;
|
||||||
|
|
||||||
wxRect rect(tab_x + tab_width - close_button_width - 1, tab_y + 1,
|
wxRect rect(tab_x + tab_width - close_button_width - 1,
|
||||||
close_button_width, tab_height - 1);
|
tab_y + (tab_height/2) - (bmp.GetHeight()/2) + 1,
|
||||||
|
close_button_width,
|
||||||
|
tab_height - 1);
|
||||||
DrawButtonS(*dc, rect, bmp, *wxWHITE, close_button_state);
|
DrawButtonS(*dc, rect, bmp, *wxWHITE, close_button_state);
|
||||||
|
|
||||||
*out_button_rect = rect;
|
*out_button_rect = rect;
|
||||||
|
Reference in New Issue
Block a user