trichview.support
Re: Dynamically calculating MinTextWidth |
Author |
Message |
Sergey Tkachenko |
Posted: 11/15/2002 12:48:05 Canvas.TextWidth(string) > Hello, > > I'm using TRichView to display 132 column text-based reports, using a > non-proportional font (courier new) so that columns line up. I don't > want the lines to wrap, since that is unreadable, so I'm setting > MinTextWidth to a value that works well. However, the user has the > option to change the font size, and when she increases the font size the > MinTextWidth is too small, and the lines wrap. Is there a way to > calculate the size in pixels of a line of text for a given > font/fontsize? Or is there a better way of accomplishing what I'm > trying to do? > > Thanks, > > Jim Gallagher > Zenia Software, Inc. |
Powered by ABC Amber Outlook Express Converter