DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Prompt to save changed plots via DDE

 
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions
View previous topic :: View next topic  
Author Message
meany



Joined: 21 Jul 2003
Posts: 16
Location: Missouri

PostPosted: Mon Aug 08, 2005 5:26 pm    Post subject: Prompt to save changed plots via DDE Reply with quote

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
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Fri Aug 12, 2005 10:35 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
meany



Joined: 21 Jul 2003
Posts: 16
Location: Missouri

PostPosted: Tue Aug 16, 2005 10:15 am    Post subject: Reply with quote

Thanks! The [ClearEditFlag()] option works for my application.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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