walter.h.brown at gmail.com
Mon Dec 6 08:40:40 CST 2010
Actually, that might be 3, since the points in the rect are inclusive (99 to
101 = 3)?
From: use-livecode-bounces at lists.runrev.com
[mailto:use-livecode-bounces at lists.runrev.com] 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 syp2u4c.com> 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.
Quartam Reports & PDF Library for LiveCode www.quartam.com
"As we grow older, we grow both wiser and more foolish at the same time."
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
More information about the use-livecode