Steve, Regarding font sizes, as you know they depend on what font you've selected, and you can't have selected a font until you have a window open. However, if you know what font you are going to use, you can always open a "hidden" offscreen window, select your font into it, and then calculate exact widths of arbitrary strings using TextWidth() or whatever; the widths will be correct if the same font is later selected into a visible window on the same display.
With a _Dialog, there may be an issue of figuring out what font it is going to use; there is a default font in the GUI classes, and there is a list of attributes to apply to _Dialogs and to individual components within the dialogs; you may have to chain through a number of components (from innermost to enclosing ones) to find the font=... value that would apply for the component you are wishing to measure. Clint ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Unicon-group mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unicon-group