Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

Anyway to Prevent Trend.Setformat from clearing the cursors?

$
0
0

I'm trying to make a trend template that lets users do some simple Processbook config all in runtime without have to switch to config. mode and double click the trend.

Currently I'm working to give them a way to change pen colors to a few pre-selected higher contrast colors using VB comboboxes, etc. Does any one know if there is a way to change a pen color without using the .SetFormat method?

 

While working on some VBA to simplify printing the display, I noticed that the .SetFormat method appears to clear out the cursors.  I was using that method to temporarily change the display background from the default grey to white for better contrast on paper (and to save toner!).  I wrote some code to capture the cursors and reapply them, and it's not a big deal to do, but I wanted to see if anyone knows if there is a way to prevent that from happening in the first place.  

 

-Greg

 


Viewing all articles
Browse latest Browse all 1120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>