Draw a line?
kray at sonsothunder.com
Wed Aug 14 09:19:01 EDT 2002
Although your code will work, I have a couple of comments: (1) you don't
need to set the templateGraphic unless you want to create a bunch of lines,
(2) when you create an object, the reference to that object is returned in
"it" (so if you don't really want to name the object, you don't have to),
and (3) the points of a polygon can be set with a single, comma-delimited
string (Rev/MC use returns to help view things visually, but they are
basically converted to commas before the "points" are set). Here's an
example of what I mean:
set the style of it to polygon
set the points of it to "0,0,100,100"
Sons of Thunder Software
Email: kray at sonsothunder.com
Web site: http://www.sonsothunder.com/
----- Original Message -----
From: Chipp Walters <chipp at chipp.com>
To: <use-revolution at lists.runrev.com>
Sent: Wednesday, August 14, 2002 12:18 AM
Subject: RE: Draw a line?
> figured it out...
> on mouseUp
> set the style of the templateGraphic to polygon
> create graphic "test"
> put "0,0" into line 1 of tpoints
> put "100,100" into line 2 of tpoints
> set the points of graphic "test" to tpoints
> end mouseUp
> use-revolution mailing list
> use-revolution at lists.runrev.com
More information about the Use-livecode