Setting a Gantt Start End values to Grid Snap

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Gainco
Newbie
Newbie
Posts: 15
Joined: Tue Feb 21, 2006 12:00 am
Location: Gainesville, Ga

Setting a Gantt Start End values to Grid Snap

Post by Gainco » Thu Sep 27, 2007 4:35 pm

I am using a Gantt series in a different way.
I display up to 32 gantts in a series to represent scale weight ranges.

I now want the user to be able change the start and end values (min & max) of each gantt using the gantt tool and to recover these values for each individual gantt. I know how to access the values.

My request is to set an a snap value increment as they drag the gantt horizontally.

I would like to be able to define the snap range at run time.

For example -
The plant operates in pounds and would only change the weight ranges in .25 increments. I would like to be able to pull the ends of the Gantt and have it change in .25 increments.

Is this possible?
Can I catch an event as the Gantt value is changing?

Thanks
Larry Killen, MSc
Gainco, Inc

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

Post by Narcís » Fri Sep 28, 2007 8:39 am

Hi Gainco,

Yes, you can try using TGanntTool's OnResizeBar event.
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

Post Reply