There shouldn't be any need to draw the backgound

under a sash.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2005-03-12 10:30:47 +00:00
parent 3f1c2da6cc
commit ab5ea030d8
2 changed files with 18 additions and 10 deletions

View File

@ -303,10 +303,13 @@ wxRendererGTK::DrawSplitterSash(wxWindow *win,
erase_rect.width = w;
}
// we must erase everything first, otherwise the garbage from the old sash
// is left when dragging it
//
// TODO: is this the right way to draw themed background?
#if 0
// RR: After a correction to the orientation of the sash
// this doesn't seem to be required anymore and it
// seems to confuse some themes
// we must erase everything first, otherwise the garbage
// from the old sash is left when dragging it
gtk_paint_flat_box
(
win->m_wxwindow->style,
@ -315,12 +318,13 @@ wxRendererGTK::DrawSplitterSash(wxWindow *win,
GTK_SHADOW_NONE,
NULL,
win->m_wxwindow,
(char *)"base", // const_cast
(char *)"viewportbin", // const_cast
erase_rect.x,
erase_rect.y,
erase_rect.width,
erase_rect.height
);
#endif
#ifdef __WXGTK20__
gtk_paint_handle

View File

@ -303,10 +303,13 @@ wxRendererGTK::DrawSplitterSash(wxWindow *win,
erase_rect.width = w;
}
// we must erase everything first, otherwise the garbage from the old sash
// is left when dragging it
//
// TODO: is this the right way to draw themed background?
#if 0
// RR: After a correction to the orientation of the sash
// this doesn't seem to be required anymore and it
// seems to confuse some themes
// we must erase everything first, otherwise the garbage
// from the old sash is left when dragging it
gtk_paint_flat_box
(
win->m_wxwindow->style,
@ -315,12 +318,13 @@ wxRendererGTK::DrawSplitterSash(wxWindow *win,
GTK_SHADOW_NONE,
NULL,
win->m_wxwindow,
(char *)"base", // const_cast
(char *)"viewportbin", // const_cast
erase_rect.x,
erase_rect.y,
erase_rect.width,
erase_rect.height
);
#endif
#ifdef __WXGTK20__
gtk_paint_handle