[wxPython-users] Hide scrollbars of wx.TreeCtrl?
Robin Dunn
robin at alldunn.com
Mon Mar 3 11:16:17 PST 2008
tttai at tma.com.vn wrote:
> Hi all,
>
> Is there a way to hide the vertical and/or horizontal scrollbars of
> wx.TreeCtrl, and scroll it programmatically?
>
Not easily, but you can probably trick it by setting the size of the
treectrl to be larger than its parent (large enough that it won't show
the scrollbars) and then do your programmatic scrolling by changing the
position of the treectrl. In other words, to simulate scrolling down
you can change the y position of the treectrl to negative values to make
it so a different portion of the tree is in the visible area.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list