canvas.textout space

TeeChart for ActiveX, COM and ASP
Post Reply
Ashutosh
Newbie
Newbie
Posts: 49
Joined: Tue Nov 04, 2008 12:00 am

Post by Ashutosh » Tue Feb 17, 2009 12:15 pm

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

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

Post by Yeray » Tue Feb 17, 2009 3:27 pm

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.
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