Hiding a scrollbar

Is there an equivalent to the Win32 ShowScrollbar() call in wxPython?
I have a window that is scrollable, but it's controlled from a
separate window (much like the wxRemotelyScrolledTreeCtrl).

···

--
Tim Lesher <tim@lesher.ws>
http://www.lesher.ws

Tim Lesher wrote:

Is there an equivalent to the Win32 ShowScrollbar() call in wxPython?
I have a window that is scrollable, but it's controlled from a
separate window (much like the wxRemotelyScrolledTreeCtrl).

There isn't support for turning scrollbars on or off after the window has been created, since it's hard to do on some platforms.

Instead you can probably use wxWindow or wxPanel for the window to be scrolled (so it won't get scrollbars by default) and then use the SetTargetWindow method of wxScrolled window to redirect the scroll events to your other window. You may have to do a bit more work to track the view start and etc., but it shouldn't be too difficult.

···

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