David,
You might head off to the MSDN Library and look up the GetTextMetrics
function and TEXTMETRIC structure.
There were a bunch of other interesting sounding functions:
CreateFontIndirect, GetTextFace, GetTextAlign, GetTextExtentPoint32,
SetTextJustification, [...].
I'd be glad to help you make a GetTextMetrics function via Win32::API
and Win32API::Const to access that information... if you think it'd
help.
Garrett
David Hiltz wrote:
>
> > Yes David, I have seen similar things. I wrote an application on Windows NT
> > and it looks and behaves much different on Windows 95. My Textfields for
> > example were big enough for Maxlength(8) characters to be visible, but under
> > Windows 95, I only could see the last 6 characters keyed. What I had to do
> > was increase the width of the textfields to accomodate Windows 95.
>
> So it looks like you have to specify a font for each object (button,
> textfield) you add?
>
> I take it, specifying the font in the Window object doesn't cover all
> fonts for all objects created in that window?
>
> I guess I need to play with and figure out the best way to handle running
> apps on different PCs...without creating more work for myself. ;)
>
> Thanks for the info.
>
> -dhiltz