SRL Archive - OSR Help

How to draw lines


Element17

2013-03-24 16:34:23

How can I draw lines on something other than smart?
How can I draw lines on smart? I see there is SMART_Drawline, but I'm not sure how to use it. Never drawn on smart before.

Element17

2013-03-26 00:42:14

From: tealc
SMART_DrawLine(Clear: Boolean; TP1, TP2: TPoint; Color: TColor);

draws a line between TP1 and TP2. Color is the color of the line. Clear is whether or not you want clear the screen of other things you have already drawn.


Tried that, kept giving me and error

i luffs yeww

2013-03-26 00:44:20

From: Element17
Tried that, kept giving me and error


What's the error?

Element17

2013-03-26 10:50:32

i luffs yew I updated smart and simba and I no longer get the error.

@tealc yes I did include {$i SRL/misc/smartgraphics.Simba}