From: Roode, E. <er...@ba...> - 2008-07-17 21:16:26
|
> >> How do I compute the size (amount of screen real-estate) that a given >> chunk of text will be, in a given font? >> >> The reason I ask is that I am trying to change the text of a label, >> and using the Text or Change methods do not resize the control; the >> control stays at its original size and truncates any new text. (This >> behavior is very annoying!). > >($x, $y) = $Label->GetTextExtentPoint32($string); > Fantastic, thank you! Eric |