View previous topic :: View next topic |
Author |
Message |
meany
Joined: 21 Jul 2003 Posts: 16 Location: Missouri
|
Posted: Mon Aug 08, 2005 5:26 pm Post subject: Prompt to save changed plots via DDE |
|
|
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! |
|
Back to top |
|
|
DPlotAdmin Site Admin
Joined: 24 Jun 2003 Posts: 2310 Location: Vicksburg, Mississippi
|
Posted: Fri Aug 12, 2005 10:35 am Post subject: |
|
|
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. _________________ Visualize Your Data
support@dplot.com |
|
Back to top |
|
|
meany
Joined: 21 Jul 2003 Posts: 16 Location: Missouri
|
Posted: Tue Aug 16, 2005 10:15 am Post subject: |
|
|
Thanks! The [ClearEditFlag()] option works for my application. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|