I think it's logical to assume that the first point is the start position and the last is the end position. This way we have a direction for a line. If it was drawn as (100, 100, 50, 50) it would extend the top left point, for (50, 50, 100, 100), to the bottom right point. At least to me this is the way I would have guessed it worked.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ed Leafe Sent: 12. juli 2007 16:25 To: Dabo Users list Subject: Re: [dabo-users] Text DrawObject.Width On Jul 12, 2007, at 10:15 AM, Simen Haugen wrote: > Sounds good, but is it possible to remove the properties that doesn't > make sense? Perhaps throw an exception for properties that doesn't > make > sense, or but it in a list of blocked properties and override > __getattribute__ to disallow these based on shape type? I suppose its possible, but I don't think it's worth the disruption in order to tell people that they are doing something really stupid. > I think setting the length of a line should be possible and change > only > endpoint (x2/y2) Do you mean the rightmost point? You can draw a line using obj.drawLine(100, 100, 50, 50), which will draw a line from (100,100) to (50, 50). You can draw the exact same line using obj.drawLine(50, 50, 100, 100). Now you change the Length property: in the first case, the point at (50,50) changes, and in the second case, the point at (100,100) changes. I don't think that that's a very good solution. Line segments are specified using 2 points, or using one point, an angle and a length. Currently we only support the former. -- Ed Leafe -- http://leafe.com -- http://dabodev.com [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]
