[billsb@optushome.com.au: [wxPython] wxScrolledWindow]

Greetings Folks,

Seeing that I got unsubscribed with the change over and
I can't get to the archives, I posted this mail again,
I appologise if anyone is anoyed by this.

Regards,
Brenton Bills.

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.

Child windows are normally constriained to their parent window.

There's an example in the demo for 2.3.3.1 that shows how to make a scrollable panel that scrolls vertically. If you need to do it horizontally too then it can be used with a bit of adaptation.

ยทยทยท

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