[wx-dev] [all] scrolled windows and panels

Vadim Zeitlin vadim at wxwindows.org
Mon Apr 2 15:07:49 PDT 2007


On Mon, 02 Apr 2007 10:22:51 -0700 Robin Dunn <robin at alldunn.com> wrote:

RD> I think that there is *a lot* of usage of wxScrolledWindow as a 
RD> wxScrolledPanel.

 I'm afraid you can be right...

RD> wxPython has a ScrolledPanel class already that could easily be changed
RD> to derive from wxScrolledPanel instead of wxScrolledWindow,

 I think we should add wxScrolledPanel anyhow, even if it's just a typedef
for wxScrolledWindow for now, just for consistency if nothing else.

RD> but I think that there are still a lot of people that are just using
RD> wx.ScrolledWindow instead to hold controls.

 What if we raised an assert when more than one (or more than 2?)
child(ren) are added to wxScrolledWindow saying "use wxScrolledPanel as
control container"? Or are there valid reasons to use wxWindow (and not
wxPanel) as children container?

 Thanks,
VZ





More information about the wx-dev mailing list