11-06-2009 03:20 AM
Hello
is there a way to save all the settings in runtime of a scattergraph without writing each property?
Best regards
Gerald
11-09-2009
07:27 AM
- last edited on
09-09-2026
11:20 AM
by
Content Cleaner
Hi Gerald,
maybe this helps:
Can I Programmatically Change the Style of a Measurement Studio Graph Created in Visual Basic 6? [broken link removed; article no longer available]
Regards,
11-09-2009 07:49 AM
Sorry the Knowledgebase Article is empty...
Best regards
Gerald
11-09-2009
07:54 AM
- last edited on
09-09-2026
11:20 AM
by
Content Cleaner
Primary Software: Measurement Studio>>Visual Basic Support
Primary Software Version: 1.1
Primary Software Fixed Version: N/A
Secondary Software: N/A
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
Problem:
Can I programmatically change the style of a Measurement Studio graph created in Visual Basic 6?
Solution:
You can access the Measurement Studio graph property pages programmatically. The styles listed on the property pages are just convenient groupings of individual properties. To create your own style (or to find the settings used to create one of the options listed), simply adjust the settings to achieve the desired look. Once you know what the individual properties need to be set to, you can adjust these in the code. The attached example demonstrates changing a line graph to a bar graph and back again. The zip file contains a readme that describes the function of this example.
11-10-2009 12:12 AM
OK I will refine my question:
I have in runtime a scattergraph with plots, cursors 2 xaxis and two yaxis. The user can change all properties of the graph, plots, cursors and axis.
Now I want to save all the settings for eaxample range, color.... and the data in a file. When the user opens this file, the graph should appear
as the last time he has closed.
At the moment i take all the properties of objects and write the value in an XML-File. I have also tried it with an serializer but the dlls are not serializable.
Is there an easier way to store the properties?
I hope you understand me.
Best regards
Gerald
11-17-2009 10:30 AM
Hi,
I don't know about a function to store all settings at once. You have to loop through them.
Regards,