csujwq 发表于 2006-12-27 19:33:00

请教,在线等,如何将图形控件Y坐标的范围设置成自动缩放

我在Graph控件属性上已经设置了是自动缩放的,但是图形控件还是按照原来的上下范围进行显示的,请问用什么命令进行修改

急!!!!!!!!!!!1

谢谢各位大哥了

cpubbs 发表于 2006-12-28 08:34:36

今天帮您找了一下,看到一个,您试试行不行:

int SetAxisScalingMode (int Panel_Handle, int Control_ID, int Axis, int Axis_Scaling, double Min, double Max);

cpubbs 发表于 2006-12-28 08:34:42

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]
查看完整版本: 请教,在线等,如何将图形控件Y坐标的范围设置成自动缩放