GUI Help > Special > setDrawingColor
setDrawingColor
setDrawingColor handle gadget, DWORD lineColour, DWORD fillColour, DWORD textColour
Description: Sets the 3 different drawing colours which a canvas gadget uses when drawing shapes using drawLine, drawRect, drawEllipse or drawText. Set any of the parameters to 0 for the colour black. The colours can be created using the RGB command, eg for a red outline, green fill and black text:
    setDrawingColor rgb(255,0,0),rgb(0,255,0),0
Return Value:
Parameters:
gadget | Handle of a canvas gadget
lineColour | The colour used to draw the borders of shapes or lines.
fillColour | The colour used to do the middle fill of shapes such as rectangles and ellipses.
textColour | The colour used by the drawText command to draw text in the canvas.
Remarks: setDrawingColor is quite fast, unlike DBPro's INK command, you can change it often in a loop without affecting performance.
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)