git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49713
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
(style & wxTINY_CAPTION_VERT)))
{
dc.SetFont( *wxSMALL_FONT );
(style & wxTINY_CAPTION_VERT)))
{
dc.SetFont( *wxSMALL_FONT );
- int height = dc.GetCharHeight();
wxBrush brush( LightContrastColour( wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT) ) );
dc.SetBrush( brush );
dc.SetPen( *wxTRANSPARENT_PEN );
wxBrush brush( LightContrastColour( wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT) ) );
dc.SetBrush( brush );
dc.SetPen( *wxTRANSPARENT_PEN );
- dc.DrawRectangle( 3, 3, win->m_width - 7, height );
+ dc.DrawRectangle( win->m_miniEdge-1,
+ win->m_miniEdge-1,
+ win->m_width - (2*(win->m_miniEdge-1)),
+ 15 );
dc.SetTextForeground( *wxWHITE );
dc.SetTextForeground( *wxWHITE );
- dc.DrawText( win->GetTitle(), 6, 3 );
+ dc.DrawText( win->GetTitle(), 6, 4 );
- dc.DrawBitmap( win->m_closeButton, win->m_width-19, 2, true );
+ dc.DrawBitmap( win->m_closeButton, win->m_width-18, 3, true );
- wxClientDC dc(win);
- dc.SetFont( *wxSMALL_FONT );
- int height = dc.GetCharHeight() + 1;
-
-
- if (y > height) return TRUE;
+ if (y > win->m_miniEdge-1 + 15) return TRUE;
gdk_window_raise( win->m_widget->window );
gdk_window_raise( win->m_widget->window );