On Jul 12, 2007, at 9:20 AM, Ed Leafe wrote:
> Crap. Looking at the code, I just realized that the fontMetric stuff
> doesn't take into account text drawn at an angle. IOW, rotating the
> text 90° still returns the same width; i.e., the width of the
> unrotated text. While that's OK for most purposes, it sure won't work
> for a Rect. Guess I'll have to do a little trig to get this working.
Well, a little trig goes a long way... ;-)
I've got all the font sizing stuff done, even for rotated text.
Paul, you can certainly steal this code for the rotated text on the
Report Designer.
I've added the Position and Size properties as you asked, and also
added the Rect property. Right now it returns a plain wx.Rect object;
in time we might wrap that to be a Dabo object.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
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]