> 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);


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/

Reply via email to