TTree disable horizontal scrollbar

TeeTree VCL for Borland Delphi and C++ Builder.
Post Reply
Lenfors
Newbie
Newbie
Posts: 49
Joined: Thu Sep 20, 2007 12:00 am

TTree disable horizontal scrollbar

Post by Lenfors » Tue Sep 06, 2011 1:45 pm

Hello!

I'm using TTree as a "menu" in my application. What I would like to do is to disable the vertical scrollbar and always have everything left justified. If some text would reach the right edge of the control it should just be truncated.
Any ideas how to do this?

Regards, Mikael

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TTree disable horizontal scrollbar

Post by Yeray » Thu Sep 08, 2011 11:40 am

Hello Mikael,

Excuse us for the delay here.
Could you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Lenfors
Newbie
Newbie
Posts: 49
Joined: Thu Sep 20, 2007 12:00 am

Re: TTree disable horizontal scrollbar

Post by Lenfors » Thu Sep 08, 2011 5:08 pm

Helllo!

Well, its not a bug! But if you se the two attached pictures, in "full view.jpg" the tree at the left It is presented as I want it to be. In the "scrolled.jpg" picture you can se how it looks if it does not fit. In this case I would still want it to be left justified and the horizontal scrollbar removed/invisible (and in leftmost position).

Regards, Mikael
Attachments
Full view.JPG
Full view.JPG (134.82 KiB) Viewed 59684 times
Scrolled.jpg
Scrolled.jpg (165.3 KiB) Viewed 59649 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: TTree disable horizontal scrollbar

Post by Narcís » Fri Sep 09, 2011 11:41 am

Hi Mikael,

That's how TreeView1 in TreeMain.pas (the What's New? menu) in the TeeTree2 demo works. You'll find it at, for example, C:\Program Files\Steema Software\TeeChart 2011 for Delphi 2011\Examples. Have you checked it?

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Lenfors
Newbie
Newbie
Posts: 49
Joined: Thu Sep 20, 2007 12:00 am

Re: TTree disable horizontal scrollbar

Post by Lenfors » Mon Sep 12, 2011 5:09 pm

I tried loading the demo but it says "The project can not be loaded because the required personality DelphiDotNet.Personality is not loaded"

Is there no simple way just to disable the horizontal scrollbar?

Regards, Mikael

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: TTree disable horizontal scrollbar

Post by Narcís » Tue Sep 13, 2011 6:56 am

Hi Mikael,

What about?

Code: Select all

  Tree1.HorzScrollBar.Visible:=False;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Lenfors
Newbie
Newbie
Posts: 49
Joined: Thu Sep 20, 2007 12:00 am

Re: TTree disable horizontal scrollbar

Post by Lenfors » Mon Nov 07, 2011 1:25 pm

Hello!

Sorry for the long delay, havent been working on this project for a while...

Already tried the Visible property but it does not have ant effect.

But I found another property MYTree.Selected.ScrollToView := False; which seems to solve the problem!

Regards, Mikael

Post Reply