[wx-dev] wxGTK: widget border changes in HEAD
Vadim Zeitlin
vadim at wxwindows.org
Fri Apr 6 18:51:26 PDT 2007
On Mon, 02 Apr 2007 15:34:38 -0700 Robin Dunn <robin at alldunn.com> wrote:
RD> I haven't looked real hard yet at what change might have caused this,
This is a mystery to me. I did change slightly related code here:
http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/src/generic/srchctlg.cpp.diff?r1=1.15&r2=1.16
but this doesn't seem to be the reason for the problem as it doesn't affect
just wxSearchCtrl: if you just create a wxWindow with, say, wxSUNKEN_BORDER
it doesn't have the border any more neither.
So I think that it must be broken by one of the recent changes in
src/gtk/window.cpp but, again, I don't see anything explaining it. With my
wxWindow example I see that draw_frame() is still called and it does draw
the border using gtk_paint_shadow() but it doesn't appear on the screen. So
something must erase/draw over it probably.
Ah, and I can confirm that it must be this change
http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/src/gtk/window.cpp.diff?r1=1.691&r2=1.692
which broke it as if I also create the window with wxHSCROLL style, it does
show the border correctly. So it looks that the fact that m_widget is the
same as m_wxwindow for non-scrollable windows is a problem somehow. But I
still don't know where exactly is the bug, I hope Robert can look into
this.
Regards,
VZ
More information about the wx-dev
mailing list