Ed Leafe wrote: > On Jul 12, 2007, at 9:08 AM, Ed Leafe wrote: > >> I was just thinking about this very thing. I've added support for >> Width, Height and Size to all the draw objects, but Position has me a >> little stumped. It's clear enough for rectangles and text, but what >> about a circle? That's drawn by specifying the center and radius, and >> Xpos/Ypos refer to the center, not the left/top. Same goes for >> polygons. > > 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.
I believe this is the same issue that has kept the report designer's design surface from properly showing rotated text. -- pkm ~ http://paulmcnett.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]
