[wxPython] wxScrolledWindow

Brenton Bills wrote:

I am a little confused in regards to a Panel vrs a Window still, maybe
this is causing my problem, but I am trying to create, what I will call
a window, where I put wxStaticText and wxTextCtrl(s), I previously used
a wxPanel but have redesigned some things and decided that I would need
a scrolling window, thus I create a wxScrollingWindow with,

self.questionWindow = wxScrolledWindow(self.mainPanel,-1,wxPoint(8,190),wxSize(624,360),wxSIMPLE_BORDER | wxVSCROLL)
self.questionWindow.SetScrollbars(wxVERTICAL, 20, 500/20, 500/20,1)

But for some reason the wxSaticText and wxTextCtrls that I have drawn (term?)
past the end of the wxScrolledWindow, that is past the 360 length, do not seem
to display properly (half drawn text boxes and none at all where there should
be in some cases) when scrolling, but when I scroll up the top, it looks fine.

Take a look at the ScrolledPanel sample in the demo in the 2.3.3 release. It shows how to do this.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!