int GetAxisScalingMode (int panelHandle, int controlID, int axis, int *axisScaling, double *min, double *max);
Obtains the scaling mode and the range of a graph axis or the range of the y-axis of a strip chart.
GetAxisScalingMode is not valid for the x-axis of a strip chart. To obtain the x-offset and x increment for a strip chart, use GetCtrlAttribute with the ATTR_XAXIS_OFFSET and ATTR_XAXIS_GAIN attributes.
| Input | ||||||
| Name | Type | Description | ||||
| panelHandle | integer | Specifier for a particular panel that is currently in memory. You obtain this handle from LoadPanel, NewPanel, or DuplicatePanel. | ||||
| controlID | integer | The defined constant, located in the .uir header file, that you assigned to the control in the User Interface Editor, or the ID returned by NewCtrl or DuplicateCtrl. | ||||
| axis | integer | Specifies for which axis to obtain the mode and range. The following lists the valid values: VAL_BOTTOM_XAXIS (graphs only) VAL_TOP_XAXIS (graphs only) VAL_LEFT_YAXIS (graphs and strip charts) VAL_RIGHT_YAXIS (graphs only) |
||||
| Output | ||||||
| Name | Type | Description | ||||
| axisScaling | integer | The current scaling mode used for the graph axis. The following table lists the values of axisScaling.
You can pass NULL for this parameter. |
||||
| min | double-precision | Current minimum value on the axis. You can pass NULL for this parameter. |
||||
| max | double-precision | Current maximum value on the axis. You can pass NULL for this parameter. |
| Name | Type | Description | ||||
| status | integer | Return value indicating whether the function was successful. A negative number indicates that an error occurred.
|