I'm using DDE (DPlot_PlotToRect) from C++ and doing some simple line plots. If I change the ManualScale values and call again for a new plot, then when I exit, I get the "Plot1 has Changed. Do you want to save the changes in a DPLOT file?" box. I do my own DPlot_Start and conditonal DPlot_Stop if DPlot/DPlotJr was not already running, but I don't want my users queried about these saves. I just want it to close out even with the changes. I see stuff in the documentation about General Options when using DPlotJr, but I want that "option" through DDE. Do I need a preference file, or is there an obvious way I'm not seeing? Thanks!
P.S. I posted this to myself accidentially instead of sending it as a question a few minutes ago. I hope you don't end up seeing it twice!
Prompt to save changed plots via DDE
Moderator: DPlotAdmin
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
Charlotte,
Somehow I overlooked this message; sorry for the delay. You can do what you want in either of 2 ways:
1) [GeneralOptions(1,0)] will turn off the "Prompt to save changed plots" checkbox. You'll need to do this before making changes to the plot. However, it may not be a real good idea to change that setting for end users unless you're certain that your program is the only way they'll ever be running DPlot, since the change is persistent. Trouble is there's no way to know whether that's the case with any certainty.
2) After making all changes to the plot, [ClearEditFlag()]. This is preferable to the above, but won't work if the user makes changes to the plot and has "Prompt to save changed plots" checked.
Somehow I overlooked this message; sorry for the delay. You can do what you want in either of 2 ways:
1) [GeneralOptions(1,0)] will turn off the "Prompt to save changed plots" checkbox. You'll need to do this before making changes to the plot. However, it may not be a real good idea to change that setting for end users unless you're certain that your program is the only way they'll ever be running DPlot, since the change is persistent. Trouble is there's no way to know whether that's the case with any certainty.
2) After making all changes to the plot, [ClearEditFlag()]. This is preferable to the above, but won't work if the user makes changes to the plot and has "Prompt to save changed plots" checked.
Visualize Your Data
support@dplot.com
support@dplot.com