There is nothing to set the size of the scrolled window to be the same as
the size of the panel. You can do it with a sizer attached to the panel, or
a simple EVT_SIZE handler like this attached to the panel:
def OnSize(self, evt):
actualPage.SetSize(self.GetClientSize())
Robin, Still I cudn't come up with solution in w2k. In Solaris the same code
is working fine.
Now the problem is that i got confussed what are the size values needs to be
set, in a notebook --
scrolled window, after createing the sizer.
I create a scrolledWindow in NoteBook. Create a sizer, add zero or more
ctrls along with sizer, then I try to set below size values.......in
scrolledWindow
self.SetAutoLayout(true)
self.SetSizer(self.cborder)
cbordersize = self.cborder.GetMinSize()
print "parent clientsize = ", self.parent.GetClientSize()
print "cbordersize = ",cbordersize
self.cborder.Fit(self)
self.SetSize(self.parent.GetSize())
size = cbordersize
self.SetScrollbars(20, 20, (size[0]+19)/20, (size[1]+19)/20)