Page 1 of 1

Is it possible to change contour levels in TChartEditor ?

Posted: Wed Jun 04, 2025 9:10 am
by 16491898
I am creating a countour plot in C++Builder via code. However, I am struggling to get appropriate contour levels and wondered whether the TChartEditor provides any way of adjusting the contours at run-time?

I cannot find anything in the user interface to edit the contour levels. Are there options ther that I am missing? If so, where?

Do I have to set particular flags for TChartEditor in my C++ code to add allow me to edit contour levels at run-time?

I'd be grateful if anyone could help me.

Thanks

Andrew

Re: Is it possible to change contour levels in TChartEditor ?

Posted: Thu Jun 05, 2025 11:35 am
by yeray
Hello Andrew,

You can show the "Levels" tab in the Chart Editor adding the "TeeContourEdit" pragma link:

.cpp:

Code: Select all

#pragma link "VCLTee.TeeContourEdit"
Levels_editor.png
Levels_editor.png (21.78 KiB) Viewed 519 times
Then you can untick the "automatic" checkbox and play with the levels.

Finally, please note that we discourage giving users access to the Chart Editor. The Chart Editor is designed to help developers create their charts; it is not intended or recommended for end users because it offers so many options that it is quite easy to select settings that make little or no sense.

Re: Is it possible to change contour levels in TChartEditor ?

Posted: Fri Jun 06, 2025 8:53 am
by 16491898
Yeray

Thanks - that helps.

Andrew