Editing Chart Save Settings

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Newbie
Newbie
Posts: 27
Joined: Wed Nov 09, 2022 12:00 am

Editing Chart Save Settings

Post by » Wed Jun 21, 2023 12:47 am

Editing Chart
How to persist the content of the property dialog box so that the settings are not lost after the program restarts???
[img]C:/Users/27401/Desktop/Snipaste_2023-06-25_14-10-55.png[/img]

TChartEditor *ChartEditor;
ChartEditor->Execute();

How to save the content of the dialog box displayed by this class?
Last edited by on Sun Jun 25, 2023 6:14 am, edited 1 time in total.

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

Re: Editing Chart Save Settings

Post by Yeray » Wed Jun 21, 2023 6:22 am

Hello,

I'm not sure to understand what do you mean with "the content of the property dialog box".
Where do you find that property? I guess the image you tried to attach would clarify it, but it wasn't correctly uploaded. Please try it again.
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

Newbie
Newbie
Posts: 27
Joined: Wed Nov 09, 2022 12:00 am

Re: Editing Chart Save Settings

Post by » Fri Jul 07, 2023 6:37 am

TChartEditor *ChartEditor;
ChartEditor->Execute();

How to save the settings in the pop-up dialog box of the above code???
Attachments
112233.png
112233.png (19.97 KiB) Viewed 11685 times

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

Re: Editing Chart Save Settings

Post by Yeray » Fri Jul 07, 2023 8:05 am

Hello,

The Chart Editor is made to help developers to design their charts; it's not intended or recommended for the final user because it has so many options it's quite easy to set options with little or no sense.

If you open the Chart Editor at design-time, the options you change should be saved in your form .dfm and then persist after reloading the project.

If you want to support modifying a chart at runtime and save and load it, you should save the chart to a .tee file. See the Tutorial 12.
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