Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

how to set the PlotAreaImage of a NI control image

how to set the plotarea of an image of NI .i have got a graph which changes the plotarea . i want to set it to a single position .
need help?????
is it this way
GraphPtr->GetPlotAreaImage().SetHeight(Value)

or

SetPlotAreaImage(LPDISPATCH)

how to set value for

LPDISPATCH
0 Kudos
Message 1 of 3
(3,603 Views)
I am a little unclear on exactly what you are wanting to do, but it sounds like you might be looking for a way to turn off auto scaling.  What auto scaling does is it will automatically try to resize the plot according to the points you plot on the graph.  This can be turned on by going to the resource view, going to the dialog where your Graph is placed, right clicking on the graph, and selecting properties.   Then on the axes menu you can check auto scaling on or off for each axis. 

I would also recommend looking at the examples for Measurement Studio.  The examples for the graph are located under C:\Program Files\National Instruments\MeasurementStudio\VC\Examples\Ui\Graph by default.  They demonstrate how to use many of the methods of the Graph control.

Message Edited by Patrick P. on 03-06-2006 06:35 PM

Pat P.
Software Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,595 Views)

GetPlotAreaImage get a LPDISPATCH, you can get IPicture form it.

using the IPicture you can control the control DC.

the size of PlotArea can't be changed, i think.Smiley Sad 

0 Kudos
Message 3 of 3
(3,554 Views)