Walt Brown walter.h.brown at
Mon Dec 6 09:40:40 EST 2010

Actually, that might be 3, since the points in the rect are inclusive (99 to
101 = 3)?

-----Original Message-----
From: use-livecode-bounces at
[mailto:use-livecode-bounces at] On Behalf Of Jan Schenkel
Sent: Monday, December 06, 2010 1:05 AM
To: How to use LiveCode
Subject: Re: LineSize

--- On Sun, 12/5/10, Hershel Fisch <hershrev at> wrote:
> Hi all, I'm wondering why when I set
> the lineSize of a line to1 and the
> height to 1 the line is not seen on the screen?
> Thanks,  Hershel

Because there has to be actual room to show the line itself. If you look at
the inspector palette after selecting a simple horizontal line, you'll see
the 'points' property is something like:
Now switch to the 'Size & Position' panel. You'll see that the 'rectangle'
of the graphic actually fits around the line:
Thus the 'minimum' height of the graphic is (101-99) = 2. My preferred methd
of updating a line graphic is setting the 'points' property, and letting the
engine update the 'rectangle' acordingly.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode

"As we grow older, we grow both wiser and more foolish at the same time."
(La Rochefoucauld)


use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription

More information about the Use-livecode mailing list