Jump to content
Software FX Community

Re: Question about information saved in a CFX Template


User (Legacy)

Recommended Posts

Good afternoon! 

I worked with this for a while and it seemed to now save anything more than

just a normal template (which from your reply is what it does). I want to

save information on Axis steps (intervals for major and minor tick marks),

marker style/frequency/type, scale max/min/units, etc. It does not seem to

save this information in the template file. Is this information stored

somewhere?

Also when I load in a template using:

m_pChartFX->FileMask = (CfxFileMask) (m_pChartFX->FileMask

| FMASK_COLORS | FMASK_ELEMENTS | FMASK_EXTENSIONS | FMASK_FONTS

| FMASK_GENERAL | FMASK_LABELS | FMASK_MULTI | FMASK_PRINTERINFO

| FMASK_SCALE | FMASK_TITLES | FMASK_TOOLS);

char tempfile[255];

strcpy(tempfile, "C:\\programs\\formattest.chd");

m_pChartFX->Import(CHART_CFXOLETEMPLATE, tempfile);

m_pChartFX->Refresh();

where tempfile was a previously saved format with the same filemask, i

noticed that the load does not change the chart

at all. For example, I would save the chart template to the tempfile name

and then change the font and size of the Y Axis. When I went back and

loaded the saved file, the Axis did not change back to the previous font and

style. The same would occur when I would change the Axis step interval

(from auto to 1.0). On the flip side, if I saved the whole chart (including

the data) using the tool bar, the information I wanted to save would be

saved (except for the Axis Label font style, but the other options are

saved). This seems to be that the save all data on the toolbar uses the

file mask, but saving the template does not. Is this a bug?

Thanks in Advance!

Francisco Padron <frankp@softwarefx.com> wrote in message

news:DE0379D14694D211B4CE00609770710D034344@sftfx-221.wamnet.net...

> By default FileMask contains FMASK_ALL.

>

> Yes FileMask will be used whenever a chart file is saved either through

the

> dialogs or through the API.

>

> Frank

> SFX

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...