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
TTree disable horizontal scrollbar
Re: TTree disable horizontal scrollbar
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.
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: TTree disable horizontal scrollbar
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
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 (134.82 KiB) Viewed 62122 times
-
- Scrolled.jpg (165.3 KiB) Viewed 62087 times
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: TTree disable horizontal scrollbar
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.
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 |
Instructions - How to post in this forum |
Re: TTree disable horizontal scrollbar
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
Is there no simple way just to disable the horizontal scrollbar?
Regards, Mikael
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: TTree disable horizontal scrollbar
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: TTree disable horizontal scrollbar
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
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