请教,在线等,如何将图形控件Y坐标的范围设置成自动缩放
我在Graph控件属性上已经设置了是自动缩放的,但是图形控件还是按照原来的上下范围进行显示的,请问用什么命令进行修改急!!!!!!!!!!!1
谢谢各位大哥了 今天帮您找了一下,看到一个,您试试行不行:
int SetAxisScalingMode (int Panel_Handle, int Control_ID, int Axis, int Axis_Scaling, double Min, double Max); Sets the scaling mode and the range of a graph axis or the range of the y-axis of a strip chart.
This function is not valid for the x-axis of a strip chart. To set the x offset and x increment for a strip chart, use the SetCtrlAttribute function with the ATTR_XAXIS_OFFSET and ATTR_XAXIS_GAIN attributes.
If you use this function to change the y-axis of a strip chart, the chart is cleared and all existing data is discarded.
When calling this function on a digital graph, the min and max values will be rounded to the closest integer value.
页:
[1]