Page 1 of 1

Posted: Tue Feb 17, 2009 12:15 pm
by 13050730
Hi Yeray,

I have one issue with canvas.textout. If I have multiline false for bottom axis I am getting a space between date and time like mm/dd/yyyy hh:mm:ss AM/PM but if I put the mutiline true I get the canvas.textout value like:mm/dd/yyyyhh:mm:ssAM/PM without any space.

Could you please help me out to fix the isue so that I always get a space between date and time.

Multiline is working fine for botton axis but not proper for the anvas.textout to display the date time value at curent mouse point.

Thanks
Ashutosh

Posted: Tue Feb 17, 2009 3:27 pm
by yeray
Hi Ashutosh,

I'm not sure to understand you. I've tried the following code and it works fine for me here.

Code: Select all

Private Sub TChart1_OnAfterDraw()
  TChart1.Canvas.TextOut 50, 50, Format$(Now, "mm/dd/yyyy hh:mm:ss AM/PM")
End Sub
What multiline do you think that causes the problem? Please, could you send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.