Rice Lake iRite IDE User Manual
Page 73

920i
Programming Reference - API Reference
69
SysCode values returned:
SysInvalidRequest
Graph not initialized.
SysOK
The function completed successfully.
Example:
result : Syscode;
weight : real;
begin
GetGross(1,Primary,weight);
result := GraphPlot(1, weight, 1, Black);
end;
GraphScale
GraphScale sets the minimum and maximum x and y values for a graph. Currently, only the y values are used for
the histogram displays; x values are reserved for future use, but must be present in the call.
Method Signature:
function GraphScale (graphic_no : Integer; x_min : Real; x_max : Real; y_min :
Real; y_max : Real) : SysCode;
Parameters:
[in]
graphic_no
Graphic number
[in]
x_min
Minimum x-axis value
[in]
x_max
Maximum x-axis value)
[in]
y_min
Minimum y-axis value
[in]
y-max
Maximum y-axis value
SysCode values returned:
SysInvalidRequest
Graph not initialized.
SysOutOfRange
A minimum value (x_min or y_min) is greater than its specified max value.
SysOK
The function completed successfully.
Example:
GraphScale(1, 10.0, 50000.0, 0.0, 10000.0);
SetBargraphLevel
Sets the displayed level of bargraph widget W to the percentage (0–100%) specified by Level.
Method Signature:
function SetBargraphLevel (W : Integer; Level : Integer) : SysCode;
Parameters:
[in]
W
Bargraph widget number
[in]
Level
Bargraph widget level
SysCode values returned:
SysInvalidWidget
The bargraph widget specified by
W
does not exist.
SysOK
The function completed successfully.
SetLabelText
Sets the text of label widget W to S.
Method Signature:
function SetLabelText (W : Integer; S : String) : SysCode;
Parameters:
[in]
W
Label widget number
[in]
S
Label widget text
SysCode values returned:
SysInvalidWidget
The label widget specified by
W
does not exist.
SysOK
The function completed successfully.