Page 1 of 1

Mapping of Edit Chart GUI with object properties

Posted: Mon Oct 29, 2018 8:10 pm
by 16584505
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

Re: Mapping of Edit Chart GUI with object properties

Posted: Wed Oct 31, 2018 4:59 pm
by 10050769
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

Re: Mapping of Edit Chart GUI with object properties

Posted: Wed Oct 31, 2018 7:06 pm
by 16584505
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