Can Baran wrote: > I would like to be able to use the GetFullExtent function of the wx.DC > class for the text that I add on a floatcanvas with a given font. I want > to write a function called def textExtent which returns the height and > width in screen coordinates of a piece of text in the selected font > place on a floatcanvas (for example via the AddText call). How can I do > that?
I'm a bit confused -- if you want the text extent in screen coords, then you can just use the regular old DC.GetFullTextExtent method. You can create a wx.ScreenDC to do this. What am I missing? > Does Floatcanvas offer a a certain feature which lets you measure > the width and the height of the text in screen coordinates? No, it's all done internally in the Text objects. Why do you want the Text Extents? If you describe at a higher level what you need to do, maybe we can figure out how you can do it. -Chris > Ps: Please let me know if my greetings are too cheesy. You can be as cheesy as you like... -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
