Hello,
We have TChart VCL v7.04, the TGauge appears to have a bug where the needle is not drawn correctly at 45 and 225 along with various angles adjacent to these values. This can be demostrated in the TeeChart Pro 7 demo software. Select Chart styles, then Other, then Gauge. Click on edit, set the needle type to triangle, set the total angle to 360, circle rotation to 90, then set the value to 45 or 225......
Is there a work around for this ? Is it possible to draw the needle myself ? We dont have the source obviously......
Brett
TGauge bug
My work around for this has been to draw my own needle. However I seem to strike a probelm when I try and use the AngleToPos() function and the RotationAnlge is not set to 90 or 270, can someone explain this function ?
The angle passed to AngleToPos() is a radian value but I need to make it negative to display correctly at 90 and 270.........
Thanks for any help,
Brett.
The angle passed to AngleToPos() is a radian value but I need to make it negative to display correctly at 90 and 270.........
Thanks for any help,
Brett.
Hi Brett,
A workaround for the moment is to add a Repaint call when the Series Value has been changed :
Yes, you're correct, it's a bug. I've added it on our defect list and a fix for it will be considered to inclusion for the next maintenance releases.We have TChart VCL v7.04, the TGauge appears to have a bug where the needle is not drawn correctly at 45 and 225 along with various angles adjacent to these values. This can be demostrated in the TeeChart Pro 7 demo software. Select Chart styles, then Other, then Gauge. Click on edit, set the needle type to triangle, set the total angle to 360, circle rotation to 90, then set the value to 45 or 225......
Is there a work around for this ? Is it possible to draw the needle myself ? We dont have the source obviously......
A workaround for the moment is to add a Repaint call when the Series Value has been changed :
Code: Select all
procedure TForm1.Series1Change(Sender: TObject);
begin
Series1.Repaint;
end;
Pep Jorge
http://support.steema.com
http://support.steema.com
Thanks for the reply, I was starting to wonder if anyone read these posts. and that there may be a better way to report bugs ?
As a work around I was using the cavas technique to draw my own needle. In doing this I seem to strike a problem when I try and use the AngleToPos() function and the RotationAnlge is not set to 90 or 270, can someone explain this function ?
The angle passed to AngleToPos() is a radian value but I need to make it negative to display correctly at 90 and 270.........
I have also asked this in another post for Alternative labels, but obviously I'm drawing text not objects......
Thanks for any help,
Brett.
As a work around I was using the cavas technique to draw my own needle. In doing this I seem to strike a problem when I try and use the AngleToPos() function and the RotationAnlge is not set to 90 or 270, can someone explain this function ?
The angle passed to AngleToPos() is a radian value but I need to make it negative to display correctly at 90 and 270.........
I have also asked this in another post for Alternative labels, but obviously I'm drawing text not objects......
Thanks for any help,
Brett.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Brett,
Those forums are monitored by our technical department and this is the place where you should place all your questions, reports, etc.Thanks for the reply, I was starting to wonder if anyone read these posts. and that there may be a better way to report bugs ?
I've already replied this question at your other post.I have also asked this in another post for Alternative labels, but obviously I'm drawing text not objects......
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 |