[wx-dev] [all] scrolled windows and panels
Robin Dunn
robin at alldunn.com
Mon Apr 2 10:22:51 PDT 2007
Vadim Zeitlin wrote:
> This is possible, of course, but I wonder if we shouldn't stop making
> wxScrolled_Window_ deriving from wxPanel anyhow. With wxScrollHelper we can
> very easily add wxScrolledPanel class. And it's not just because I'm lazy
> and don't want to add new complicated code to have to deal with dynamically
> updating the panels GTK_CAN_FOCUS flag (although this definitely plays a
> role) but it seems to me that having wxScrolledWindow derive from wxWindow
> and wxScrolledPanel from wxPanel would actually be more logical than the
> current situation. Of course, it would also be another incompatible change
> as it would break TAB navigation in wxScrolledWindows which were really
> used as scrolled panels before. But maybe it's still worth doing as I
> propose?
I think that there is *a lot* of usage of wxScrolledWindow as a
wxScrolledPanel. wxPython has a ScrolledPanel class already that could
easily be changed to derive from wxScrolledPanel instead of
wxScrolledWindow, but I think that there are still a lot of people that
are just using wx.ScrolledWindow instead to hold controls.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wx-dev
mailing list