LightTool DrawStyle

TeeChart for ActiveX, COM and ASP
Post Reply
Ash-S
Newbie
Newbie
Posts: 2
Joined: Wed May 29, 2019 12:00 am

LightTool DrawStyle

Post by Ash-S » Tue Sep 03, 2019 2:44 pm

Hi,

I've added a light tool to my chart but I want to set the DrawStyle property to be Before Chart. The property is not mentioned in the documentation and everything I have tried just errors with invalid property. Any ideas?

Code: Select all

ole_tchart.GetChart().Tools().Add(u_tchart.ll_tool_Light)
ole_tchart.GetChart().Tools(0).asLight.DrawStyle = 2
Attachments
draw-before-chart.PNG
draw-before-chart.PNG (399.5 KiB) Viewed 20697 times

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

Re: LightTool DrawStyle

Post by Yeray » Thu Sep 05, 2019 1:35 pm

Hello,

Here the TLightDrawStyle definition in Delphi (note TeeChart ActiveX is a wrapper from TeeChart VCL):

Code: Select all

  TLightDrawStyle=(ldsAfterChart,
                   ldsBeforeChart,
                   ldsAfterSeries,
                   ldsBeforeSeries,
                   ldsBeforeAxes);
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

Ash-S
Newbie
Newbie
Posts: 2
Joined: Wed May 29, 2019 12:00 am

Re: LightTool DrawStyle

Post by Ash-S » Thu Sep 05, 2019 2:27 pm

Hi,

Thanks but this is not helping.

The problem is not the definitions, it's the property I should be using. According to the VCL reference it should be DrawStyle but I just get an error saying it doesn't exist.

Code: Select all

ole_tchart.GetChart().Tools(0).asLight.DrawStyle
I can't set the Factor or Style property either. When I reference the tool using .asLight I get an object. As it's ActiveX it's impossible to inspect to expose the properties. All other tools I use work fine e.g. .asColorLine or .asScrollPager

I am using a build you sent me a few day's ago which had a bug fix in for Maps & Scroll Pagers. Could this perhaps be another bug?
Attachments
draw-style-error.PNG
draw-style-error.PNG (6.3 KiB) Viewed 20678 times

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

Re: LightTool DrawStyle

Post by Yeray » Fri Sep 06, 2019 11:26 am

Hello,

You are right. I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=2235
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