Page 1 of 1
Editing Chart Save Settings
Posted: Wed Jun 21, 2023 12:47 am
by 16494694
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?
Re: Editing Chart Save Settings
Posted: Wed Jun 21, 2023 6:22 am
by yeray
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.
Re: Editing Chart Save Settings
Posted: Fri Jul 07, 2023 6:37 am
by 16494694
TChartEditor *ChartEditor;
ChartEditor->Execute();
How to save the settings in the pop-up dialog box of the above code???
Re: Editing Chart Save Settings
Posted: Fri Jul 07, 2023 8:05 am
by yeray
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.