Parameter: GraphVarName Name of the display variable which contains a SlEs‐
GraphCustomWidget
Return Value Error code (bool): TRUE = successful
x left-hand edge (double)
y upper edge (double)
Radius Radius (double)
addArc – add arc to a contour
Syntax: ReturnValue = CallCWMethod
(GraphVarName, "
addArc
", x1, y1, x2, y2, Star‐
tAngle, SpanAngle
Description: Adds an arc to the currently selected contour
Parameter: GraphVarName Name of the display variable which contains a SlEs‐
GraphCustomWidget
Return Value Error code (bool): TRUE = successful
x1 left-hand edge (double)
y1 upper edge (double)
x2 right-hand edge (double)
y2 lower edge (double)
StartAngle Starting angle in degrees (double)
SpanAngle Opening angle in degrees (double)
addText – add text to a contour
Syntax: ReturnValue = CallCWMethod
(GraphVarName, "
addText
", x, y, Text)
Description: Adds a text to the currently selected contour
Parameter: GraphVarName Name of the display variable which contains a SlEs‐
GraphCustomWidget
Return Value Error code (bool): TRUE = successful
x left-hand edge (double)
y upper edge (double)
Text Text (QString)
setPenWidth – sets the pen width
Syntax: ReturnValue = CallCWMethod
(GraphVarName, "
setPenWidth
")
ReturnValue =
CallCWMethod
(GraphVarName, "
setPenWidth
", width)
Description: Defines the pen width from the instant that the function was called for the follow‐
ing objects that were added to the actual contour.
Parameter: GraphVarName Name of the display variable which contains a SlEs‐
GraphCustomWidget
Return Value Error code (bool): TRUE = successful
width Pen width (double).
If a pen width is not specified, then the default pen width
is set.
Graphic and logic elements
7.5 SIEsGraphCustomWidget
SINUMERIK Integrate Run MyScreens (BE2)
240 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1