Page 1 of 1

Annotation problem on OnMouseEnterSeries event

Posted: Thu Jul 15, 2004 11:54 am
by 9082924
I set annotation displayed when mouse over bars.
The annotation displays well at the beginning when I move the mouse from the left side of bar chart and keep mouse on different bars from left to right.But it can't display anything once I move the mouse back to left during the time before getting out the bars area.
But it works well if I move the mouse from right side of chart.
How could it be ? What can I do ?

Thanks.
Jason

Posted: Mon Jul 19, 2004 1:57 pm
by Pep
Hi Jason,

could you please post an example into the steema.public.attachments newsgroup with which I can reproduce the problem "as is" here ?

Posted: Tue Jul 20, 2004 3:55 am
by 9082924
Hi Josep,
Failed to find steema.public.attachments newsgroup. May I have your email and send a sample to you directly ?
Thanks.

Posted: Tue Jul 20, 2004 3:59 am
by 9082924
One more question.
How can I get commas displayed in a long figure for a tip? Any method available to transform figures automatically ?
Thanks a lot.

Jason

Posted: Tue Jul 20, 2004 7:25 am
by Pep
Hi Jason,
Failed to find steema.public.attachments newsgroup. May I have your email and send a sample to you directly ?
yes, you can send me it directly to pep@steema.com
How can I get commas displayed in a long figure for a tip? Any method available to transform figures automatically ?
What is actually displayed in the TeeChart will depend on the locale defined in the Windows Regional Options, more specifically in what is set in the Decimal Separator and Digit Grouping Symbol under "Numbers". For example, I run a US version of Win2K with the local set as "Catalan" (which uses the Number format used by Spanish and German) and when I run the following VB code:

Private Sub Form_Load()
With TChart1
.AddSeries scBar
.Axis.Bottom.Labels.Angle = 90
For i = 37000 To 37028
.Series(0).AddXY i, Rnd * 100, "", clTeeColor
Next i
End With
End Sub

The numbers on the bottom axis appear as "37.012", "37.014" etc. Opening "Regional Settings" and changing the locale in "General", the default locale in "Input Locales" and the locale in the toolbar to English (United Kingdom) and running the code above gives me "37,012", "37.014" etc.on the bottom axis without any need for further programming.