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
Bottom axis label problem
Re: Bottom axis label problem
Hi Netsrak,
You can change the strings that delphi uses to display the days of the week as follows:
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |