- Code: Select all
--- wxaui-0.9.1/include/manager.h
57c57,59
< wxAUI_ART_GRADIENT_TYPE = 16
---
> wxAUI_ART_GRADIENT_TYPE = 16,
> wxAUI_ART_CAPTION_TEXT_INDENT = 17,
> wxAUI_ART_PANE_BUTTON_BORDER_SIZE = 18
619c621
< void DrawCaptionBackground(wxDC& dc, const wxRect& rect, bool active);
---
> virtual void DrawCaptionBackground(wxDC& dc, const wxRect& rect, bool active);
642c644,645
< int m_caption_size;
---
> int m_caption_size;
> int m_caption_text_indent;
644c647,648
< int m_button_size;
---
> int m_button_size;
> int m_button_border_size;
- Code: Select all
--- wxaui-0.9.1/src/manager.cpp
155c155,156
< m_caption_size = 17;
---
> m_caption_size = 17;
> m_caption_text_indent = 3;
157c158,159
< m_button_size = 14;
---
> m_button_size = 14;
> m_button_border_size = 0;
166,171c168,175
< case wxAUI_ART_SASH_SIZE: return m_sash_size;
< case wxAUI_ART_CAPTION_SIZE: return m_caption_size;
< case wxAUI_ART_GRIPPER_SIZE: return m_gripper_size;
< case wxAUI_ART_PANE_BORDER_SIZE: return m_border_size;
< case wxAUI_ART_PANE_BUTTON_SIZE: return m_button_size;
< case wxAUI_ART_GRADIENT_TYPE: return m_gradient_type;
---
> case wxAUI_ART_SASH_SIZE: return m_sash_size;
> case wxAUI_ART_CAPTION_SIZE: return m_caption_size;
> case wxAUI_ART_CAPTION_TEXT_INDENT: return m_caption_size;
> case wxAUI_ART_GRIPPER_SIZE: return m_gripper_size;
> case wxAUI_ART_PANE_BORDER_SIZE: return m_border_size;
> case wxAUI_ART_PANE_BUTTON_SIZE: return m_button_size;
> case wxAUI_ART_PANE_BUTTON_BORDER_SIZE: return m_button_border_size;
> case wxAUI_ART_GRADIENT_TYPE: return m_gradient_type;
182,187c186,193
< case wxAUI_ART_SASH_SIZE: m_sash_size = new_val; break;
< case wxAUI_ART_CAPTION_SIZE: m_caption_size = new_val; break;
< case wxAUI_ART_GRIPPER_SIZE: m_gripper_size = new_val; break;
< case wxAUI_ART_PANE_BORDER_SIZE: m_border_size = new_val; break;
< case wxAUI_ART_PANE_BUTTON_SIZE: m_button_size = new_val; break;
< case wxAUI_ART_GRADIENT_TYPE: m_gradient_type = new_val; break;
---
> case wxAUI_ART_SASH_SIZE: m_sash_size = new_val; break;
> case wxAUI_ART_CAPTION_SIZE: m_caption_size = new_val; break;
> case wxAUI_ART_CAPTION_TEXT_INDENT: m_caption_text_indent = new_val; break;
> case wxAUI_ART_GRIPPER_SIZE: m_gripper_size = new_val; break;
> case wxAUI_ART_PANE_BORDER_SIZE: m_border_size = new_val; break;
> case wxAUI_ART_PANE_BUTTON_SIZE: m_button_size = new_val; break;
> case wxAUI_ART_PANE_BUTTON_BORDER_SIZE: m_button_border_size = new_val; break;
> case wxAUI_ART_GRADIENT_TYPE: m_gradient_type = new_val; break;
341,345c347,350
< else
< dc.SetTextForeground(m_inactive_caption_text_colour);
<
<
< wxCoord w,h;
---
> else
> dc.SetTextForeground(m_inactive_caption_text_colour);
>
> wxCoord w,h;
349c354
< dc.DrawText(text, rect.x+3, rect.y+(rect.height/2)-(h/2)-1);
---
> dc.DrawText(text, rect.x+m_caption_text_indent, rect.y+(rect.height/2)-(h/2)-1);
387c392,393
< wxRect rect = _rect;
---
> wxRect rect = _rect;
> rect.y += m_button_border_size; // sizer return rect including borders
1609c1615,1616
< int pane_button_size = m_art->GetMetric(wxAUI_ART_PANE_BUTTON_SIZE);
---
> int pane_button_size = m_art->GetMetric(wxAUI_ART_PANE_BUTTON_SIZE);
> int pane_button_border_size = m_art->GetMetric(wxAUI_ART_PANE_BUTTON_BORDER_SIZE);
1665,1666c1672,1675
< caption_size,
< 0, wxEXPAND);
---
> pane_button_size,
> 0,
> wxALIGN_TOP|wxTOP|wxRIGHT|wxBOTTOM,
> pane_button_border_size);
If there is interest I can later post my custom wxDockArt class.