11-03-2008 10:55 AM
Hi
I am using the following fuctions to draw a graph in visual studio by using the labview include libs:
InitCVIRTE();
NewPanel();
NewCtrl();
DisplayPanel();
SetAxisScalingMode();
PlotStripChart();
I can change the size of the background window by changing the values in the function NewPanel, but I don´t know how to change the size of the graph. I want it to fill most of the screen. I have also tryed with the function SetAxisScalingMode but it did not change the size og the graph it only changed the Scaling.
How do I change the size og the graph?
BR
Benjamin
Solved! Go to Solution.
11-03-2008 11:09 AM - edited 11-03-2008 11:11 AM
11-03-2008 11:21 AM
Hi
Ok, sorry but I don´t understand the "controlAttribute integer". What should I choose to make my graph bigger?
I have to choose one of the following:
http://zone.ni.com/reference/en-XX/help/370051H-01/cvi/cvilist_of_control_attributes/
BR
Benajmin
11-03-2008 02:41 PM
ControAttribute parameter specifies which attribute you want to set. In your case you must call SetCtrlAttribute twice: one time with ATTR_WIDTH attribute, the other with ATTR_HEIGHT.
Dimensions are expressed in pixels.
11-04-2008 06:19 AM - edited 11-04-2008 06:27 AM