Bottom axis label problem

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
7188348
Newbie
Newbie
Posts: 1
Joined: Tue Mar 04, 2003 5:00 am

Bottom axis label problem

Post by 7188348 » Mon Oct 12, 2009 12:35 pm

Hi all

I'm having a chart which bottom axis datetime value is set to "dddhh dd-mm", exact date time is true, multiline is true as well. The first 3 ddd will be converted to the shortname of the day depending on the language of windows. In my case this is dutch. What I would like to have is the shortname in english. How can I achieve this?

I tried to use the OnGetAxisLabel event and replace in there the ddd part to the english day shortname but when I enter this event the ValueIndex is -1 and LabelText parameter is messed up. I read in newsgroup that I had to set the fChart->BottomAxis->LabelStyle to talMark/talText before but this doesn't help (right now it's set to talAuto).
Did I forget to set a parameter somewhere or do I have to convert the total datetime value by myself?
Any Ideas?

Cheers
Karsten

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Bottom axis label problem

Post by Yeray » Tue Oct 13, 2009 3:26 pm

Hi Netsrak,

You can change the strings that delphi uses to display the days of the week as follows:

Code: Select all

  ShortDayNames[1] := 'Mon';
  ShortDayNames[2] := 'Tue';
  ShortDayNames[3] := 'Wed';
  ShortDayNames[4] := 'Thu';
  ShortDayNames[5] := 'Fri';
  ShortDayNames[6] := 'Sat';
  ShortDayNames[7] := 'Sun';
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply