Cheers Guys!!!
Thanks for your help, Marty > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > [EMAIL PROTECTED] > Sent: Monday 07 January 2002 15:56 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Subject: RE: Widget dimensions, compared to a string? > > > > -----Original Message----- > > From: Morse, Richard E. [mailto:[EMAIL PROTECTED]] > > Sent: Monday, January 07, 2002 10:16 AM > > To: 'Martin Moss'; [EMAIL PROTECTED] > > Subject: RE: Widget dimensions, compared to a string? > > > > > > The problem here is going to be that if the font is not > > monospaced, you will > > have to take the various characters' width into account. > > > > That being said, any GUI API should include some function > > like 'stringwidth' or > > some such, that given access to information about what font > > and size, and a > > string, will report back the number of pixels that the string > > would use. > > Depending on the toolkit you're using (win32::GUI v. Perl/Tk v. GTK), you > should be able to access the Font Metrix from the Device Context. > > > HTH, > Ian > _______________________________________________ > Perl-Win32-Users mailing list > [EMAIL PROTECTED] > http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users