LMD DialogPack
|
Returns the minimum width required for the caption to be drawn.
class function MinimumWidth(ACanvas: TCanvas; const ACaption: TJSString; const AFont: TFont; const AWidth: Integer): Integer;
Calculate the maximum length of a line for the ACaption value while allowing the AWidth parameter to be the longest long allowed for the caption. Generally this method will return a value smaller than the AWidth parameter value, due to the caption requiring to wrap as longer words do not fit on the rest of a line.
The width parameter must always be known.
Copyright © 2013 by LMD Innovative. All rights reserved.
|
What do you think about this topic? Send feedback!
|