Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TTreeView, hide vertical scrollbar permanently.

Status
Not open for further replies.

ludek

Programmer
Jun 13, 2001
5
ZA
I am building a control that contains two TTreeView components next to each other. I need the LHS tree view to NEVER show it's vertical scroll bar, since I control its scrolling from the RHS one. Is there an easy way to do this?
 
A quick and dirty way of doing this is to put the second TTreeView control inside a TPanel so that the vertical scroll bar is clipped by the TPanel container control. Be sure to set the TPanel.Locked property to True to disable its OLE functionality. Manipulate the TPanel's border properties as necessary to get the desired look.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top