On Jul 12, 2007, at 4:06 AM, Simen Haugen wrote:
> DrawObject has a Width property. On bmp's it work, but on text I
> need to
> do:
>
> txt = self.drawText("the text")
>
> # txt.Width is 0
>
> width = dabo.ui.fontMetricFromDrawObject(txt)[0]
OK, that sounds reasonable, but bear in mind that it would be read-
only. Height and Width were only originally intended to be used with
objects where those dimensions needed to be specified.
-- 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]