[wxPython-users] Hide scrollbars of wx.TreeCtrl?

Tai Tran Tan tttai at tma.com.vn
Mon Mar 3 22:33:19 PST 2008


Robin, thanks!

-----Original Message-----
From: Robin Dunn [mailto:robin at alldunn.com] 
Sent: Tuesday, March 04, 2008 2:16 AM
To: wxPython-users at lists.wxwidgets.org
Subject: Re: [wxPython-users] Hide scrollbars of wx.TreeCtrl?

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!


---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org





More information about the wxpython-users mailing list