MarkTips Tool: Change style at runtime

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Steffen
Newbie
Newbie
Posts: 23
Joined: Mon Sep 07, 2009 12:00 am

MarkTips Tool: Change style at runtime

Post by Steffen » Wed Nov 11, 2009 5:21 pm

Hi,

how do I change the style of the markTips tool at runtime from "label and percent" to "label and value" in a dbchart?

Brgds.
Steffen

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: MarkTips Tool: Change style at runtime

Post by Narcís » Wed Nov 11, 2009 6:39 pm

Hi Steffen,

You can do this:

Code: Select all

  Series1.Marks.Style:=smsLabelValue;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Steffen
Newbie
Newbie
Posts: 23
Joined: Mon Sep 07, 2009 12:00 am

Re: MarkTips Tool: Change style at runtime

Post by Steffen » Thu Nov 12, 2009 2:17 pm

Hi Narcís,

thank you but for some reason this hasn't any effect.
I tried updating the chart after changing tools style but with no effect either.

Any idea?

Best regards,
Steffen

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

Re: MarkTips Tool: Change style at runtime

Post by Yeray » Fri Nov 13, 2009 11:19 am

Hi Steffen,

If your TMarksTipTool is called ChartTool1, try this:

Code: Select all

ChartTool1.Style:=smsLabelValue;
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