NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
ex_sysdrawline.nxc

This is an example of how to use the SysDrawLine function along with the DrawLineType structure.

task main()
{
DrawLineType dlArgs;
dlArgs.StartLoc.X = 20;
dlArgs.StartLoc.Y = 20;
dlArgs.EndLoc.X = 60;
dlArgs.EndLoc.Y = 60;
dlArgs.Options = 0x01; // clear before drawing
SysDrawLine(dlArgs);
}