Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way to make cwGraph axes interactive?

I'm using a cwGraph control, and I was wondering if there was an easy way to make the axes range interactive (editable). I can think of a number of work-arounds, but there has to be an easy, built in way to do it, or at least I should hope there is. I'm thinking of the equivalent LabView control, where all you do is double click on an axis extreme, edit it, and the range is updated. Is this something I have to manually implement?

-Michael J. Eggertson
mje1@u.washington.edu
Department of Chemistry
University of Washington
0 Kudos
Message 1 of 3
(3,168 Views)
No, unfortunately, there is no built in way to do this. It is on our suggested feature list since it can be done in LabVIEW. I would suggest using the zooming/panning features of the graph, or a couple of numedit controls with a rescale button for each axis.


Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 3
(3,168 Views)
The LabVIEW style graph would be a nice thing, but a couple of things I've done in the past are:
1. If the user right clicks on the graph, a little floating tool pallette appears, with arrow icons on it, click on the appropriate icon to scale the graph. this can also be used for zooming/panning if for some reason you can't do it with the mouse(in cursor mode or similar)
2. A double click on a graph brings up a graph config dialog box, that has hi/lo limits for each axis.

One nice thing about doing stuff like this is that once you have done the code (and tested/doc'ed it naturally:) is that you can wrap it up as another activeX control and next time you or a colleague use
you specialised version of the control all the features are there for you to u
se.
HTH

Paul Rocca
0 Kudos
Message 3 of 3
(3,168 Views)