I want to use a gantt chart with a large number of items, more than easily put on a singe page.
I add a verticle scroll bar to the chart, (making sure it's "Chart" Property is set correctly) and generate Gantt entries, somethimes more than a pages worth.
The scroll bar does nothing except flash.
I I missing something here?
I have a example I will post to the steema public attachments.
Gantt chart scroll bars problem
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Bugsie,
Thanks for the example project but I'm not able to run it because I don't have Unit1.cpp requested at:
Would you be so kind to send it so that we can run the project here?
Thanks in advance.
Thanks for the example project but I'm not able to run it because I don't have Unit1.cpp requested at:
Code: Select all
USEFORM("..\ChartLegend\Unit1.cpp", MyForm);
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Bugsie,
Thanks for your collaboration but I'm afraid TeeScroB.hpp is still missing .
Thanks for your collaboration but I'm afraid TeeScroB.hpp is still missing .
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 |
TeeScroB.hpp is one of your files. (Tee Chart Scroll!)
Whenever I start a new project I have to change
#include "TeeScroB.h" // added in automatically when the scrollbar is added.
to ...
#include "TeeScroB.hpp"
In the header. Try changing it back.
Cheers Bugsie
It is possible I have mispelt the $(TEEINCLUDEPATH) in the project include paths, as this environment variable does not work for me
Whenever I start a new project I have to change
#include "TeeScroB.h" // added in automatically when the scrollbar is added.
to ...
#include "TeeScroB.hpp"
In the header. Try changing it back.
Cheers Bugsie
It is possible I have mispelt the $(TEEINCLUDEPATH) in the project include paths, as this environment variable does not work for me
This problem is very easy to reproduce, try this if it proves too hard to use my sample.
1) Create a new project
2) drop on a chart (it will get called Chart1)
3) Edit the chart and choose a gantt chart.
Set the "Points per Page" to a max of 25
4) Drop a chart scroll bar onto the form
5) make the scroll bar vertical and set its "Chart" property to Chart1
6) Set the ScrollBar Align to Property to "Right"
7) and the Chart Align Property to "Client"
For the "FormCreate" Event for the Form, Add the following code
Run it to see the problem.
Note: you can scroll the gantt chart with the right mouse, but sometimes when attempting to use the scroll bar again I get a stack overflow.
Cheers
Bugsie
1) Create a new project
2) drop on a chart (it will get called Chart1)
3) Edit the chart and choose a gantt chart.
Set the "Points per Page" to a max of 25
4) Drop a chart scroll bar onto the form
5) make the scroll bar vertical and set its "Chart" property to Chart1
6) Set the ScrollBar Align to Property to "Right"
7) and the Chart Align Property to "Client"
For the "FormCreate" Event for the Form, Add the following code
Code: Select all
void __fastcall TForm1::FormCreate(TObject *Sender)
{
TDate Today = TDate::CurrentDate();
TDate today = Today;
TDate nextday = today + 10;
int d;
for(d=1;d<50;d++){
Series1->AddGantt(today,nextday,d,"x " + String(d));
today = nextday;
nextday += 10;
}
}
Note: you can scroll the gantt chart with the right mouse, but sometimes when attempting to use the scroll bar again I get a stack overflow.
Cheers
Bugsie
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Bugsie,
You'd better use a TScrollBar, TeeChart's scroll bar doesn't work very well. I've posted an example at the newsgroups on how to do that.
You'd better use a TScrollBar, TeeChart's scroll bar doesn't work very well. I've posted an example at the newsgroups on how to do that.
Yes, it should be $(TEEINCPATH).It is possible I have mispelt the $(TEEINCLUDEPATH) in the project include paths, as this environment variable does not work for me
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 |