Hi,
I added TColorBandTool to the TChart. I want to display whether the startline or endline is dragging and value of the startline or endline when dragging the startline or endline of the colorband. How can I do that?
Cheers
Xia
Drag Colorband
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Xia,
Yes, this is possible. You can either to something like this:
Or this:
Hope this helps!
Yes, this is possible. You can either to something like this:
Code: Select all
procedure TForm1.Chart1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
if ChartTool1.StartLine.Clicked(X,Y) then
Chart1.Title.Text[0]:=FloatToStr(ChartTool1.StartValue);
if ChartTool1.EndLine.Clicked(X,Y) then
Chart1.Title.Text[0]:=FloatToStr(ChartTool1.EndValue);
end;
Code: Select all
procedure TForm1.Chart1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
if ChartTool1.StartLine.Clicked(X,Y) then
StartClicked:=true
else
StartClicked:=false;
if ChartTool1.EndLine.Clicked(X,Y) then
EndClicked:=true
else
EndClicked:=false;
end;
procedure TForm1.Chart1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
Chart1.Title.Text.Clear;
if StartClicked then
Chart1.Title.Text.Add(FloatToStr(ChartTool1.StartValue));
if EndClicked then
Chart1.Title.Text.Add(FloatToStr(ChartTool1.EndValue));
end;
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 Xia,
You're welcome. I'm glad to hear that.Yes. That's what I need. Thanks.
Please notice that latest TeeChart Pro v8 release available at the client download area is v8.02. This version includes documentation for TNumericGauge at TeeChart8.hlp.By the way, do you have help documentation for TNumericGauge. I can't find in the TeeChart user guide and tutorials came with TeeChart 8.01 for C++ Builder 2007.
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 |
Hi Narcis,
I have downloaded the latest V8.02 which has the help file for TNumericGauge.
I noticed that the TeeCommander toolbar style has been changed. I had a program using a TeeCommander toolbar. The program was fine with V8.01 style of toolbar but it has problems with V8.02 toolbar. The images of the toolbar buttons seem shifted by half of the button size (How can I send you an image of the screen print?), and it shows an error message "invalid property value" when clicking the Edit button. Are there some files need to be added with new version?
Thanks
Xia
I have downloaded the latest V8.02 which has the help file for TNumericGauge.
I noticed that the TeeCommander toolbar style has been changed. I had a program using a TeeCommander toolbar. The program was fine with V8.01 style of toolbar but it has problems with V8.02 toolbar. The images of the toolbar buttons seem shifted by half of the button size (How can I send you an image of the screen print?), and it shows an error message "invalid property value" when clicking the Edit button. Are there some files need to be added with new version?
Thanks
Xia
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Xia,
Yes, TeeCommander has been redesigned. However, this is the first time we hear about that problem. Could you please send us an image and a simple example project we can run "as-is" to reproduce this issue here?
You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at the upload page.
Thanks in advance.
Yes, TeeCommander has been redesigned. However, this is the first time we hear about that problem. Could you please send us an image and a simple example project we can run "as-is" to reproduce this issue here?
You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at the upload page.
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 |