Scrollbar help with DynamicSashWindow
Danny Shevitz
shevitz at lanl.gov
Fri Mar 2 09:48:47 PST 2007
I'm using a DSW to present multiple views of a tree. The DSW has it's own
scrollbars.
Currently as the length of the tree increases, the TreeCtrl puts up it's
own scrollbars, So I have
two scrollbars on the rhs.
I know DSW's have scrollbar events as in the demo. What I don't understand
is how
to hook up the DSW scrollbars to the TreeCtrl.
For the demo, the operative lines are:
self.SetVScrollBar(v_bar)
self.SetHScrollBar(h_bar)
But there are no Set[V|H]ScrollBar methods for a TreeCtrl. For a TreeCtrl
there is
a SetScrollbar method, but that just changes the position, not the window.
So, I'm stuck. What am I supposed to do?
Thanks,
Danny
More information about the wxpython-users
mailing list