07-30-2008 06:45 AM
07-31-2008 02:22 AM
08-04-2008 02:40 AM - edited 08-04-2008 02:41 AM
Hello,
You can save the current state of a graph in a file by using CNiGraph::ExportStyle() function :
Declaration
void ExportStyle( LPCTSTR fileName);Description
Exports the style of the control to a file.
A style is the complete current state of a control. For example, on a CNiSlide control the current values of pointers, all colors, all fonts, and all imported images are examples of a current state that is saved as a style.
Use ExportStyle to save the style of a control after you have configured it. For example, if you often create a new CNiGraph control and set properties such as tick colors, axes ranges, and background colors, you can save the style of a graph once you have configured it. Then, when you want to create a graph of the same style, create a new graph, access the property pages, and import the exported style.
You can import or export a style from the property page or you can import it or export it programmatically using ImportStyle or ExportStyle.
Parameters
fileName
The name of the style file to save.
Regards,
08-04-2008 02:43 AM
08-11-2008 05:48 AM