Mapping of Edit Chart GUI with object properties

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Markus46
Newbie
Newbie
Posts: 10
Joined: Thu Sep 20, 2018 12:00 am

Mapping of Edit Chart GUI with object properties

Post by Markus46 » Mon Oct 29, 2018 8:10 pm

Hello,

AT design-time, when I double-click on a TChart I see an Edit Chart GUI where I can set a myriad of chart/series properties.
Is there any documentation mapping the GUI elements with object properties? I need to be able to set many properties at run-time and as a novice TeeChart user, I am really struggling to work out what object property is equivalent to a particular GUI element.

Example 1: See LegendBorder.png attachment.
On the GUI, I change Chart -> Legend -> Format -> Border -> Frame -> Visible to remove the border around the legend.
What property do I change at runtime to achieve this?

Example 2: See PointSeriesBorder.png attachment.
On the GUI, I change Series -> Format -> Border -> Visible to remove the border around the points.
What property do I change at runtime to achieve this?

I request that you implement hints in the Edit Chart GUI that give the property associated with a GUI element when the mouse hovers over a GUI element. Or (non-standard behavior) synchronize the object inspector with the GUI so that a change in GUI positions to the object inspector property that has has changed.

Thanks in advance,
Mark
Attachments
PointSeriesBorder.png
PointSeriesBorder.png (29.44 KiB) Viewed 1037 times
LegendBorder.png
LegendBorder.png (23.39 KiB) Viewed 1037 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Mapping of Edit Chart GUI with object properties

Post by Sandra » Wed Oct 31, 2018 4:59 pm

Hello Markus,

I have added below the lines code you need use to achieve as you want in runtime:
Example 1: See LegendBorder.png attachment.
On the GUI, I change Chart -> Legend -> Format -> Border -> Frame -> Visible to remove the border around the legend.
What property do I change at runtime to achieve this?

Code: Select all

Chart1.Legend.Pen.Visible := false;
Example 2: See PointSeriesBorder.png attachment.
On the GUI, I change Series -> Format -> Border -> Visible to remove the border around the points.
What property do I change at runtime to achieve this?

Code: Select all

Series1.Pointer.Pen.Visible := false;
Hoping this helps you.
Thanks in advance
Best Regards,
Sandra Pazos / 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

Markus46
Newbie
Newbie
Posts: 10
Joined: Thu Sep 20, 2018 12:00 am

Re: Mapping of Edit Chart GUI with object properties

Post by Markus46 » Wed Oct 31, 2018 7:06 pm

Thanks Sandra!
Your solution to remove the border around the points works well.
To remove the border around the legend, I eventually discovered this code:

Code: Select all

Chart1.Legend.Frame.Visible := false;
Although different from your code, it seems to work as desired.

Regards
Mark

Post Reply