Win32Lib Question

new topic     » goto parent     » topic index » view thread      » older message » newer message

--Boundary_(ID_R+kJccjra2TM6g5e/0pxXg)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: quoted-printable

Hi:

I am using some edittext controls for numbers, and it would be nice if =
the numbers would
line up vertically, but that won't happen with proportional fonts.=20
However, when I change the font to a fixed-width font, either Courier or =
Fixedsys,=20
suddenly the numbers drop off at the decimal point: e.g. 29.95 is now =
shown as 29,
and 1.49 is shown as 1, so things don't line up still, and worse, the =
numbers are screwy.
I'm loading the controls with =
setText(EditText1,sprintf("%8.2f",mynumber)).....

Any ideas?

Thanks,
Irv


--Boundary_(ID_R+kJccjra2TM6g5e/0pxXg)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi:<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I am using some edittext controls for =
numbers, and=20
it would be nice if the numbers would</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>line up vertically, but that won't =
happen with=20
proportional fonts. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>However, when I change the font to a =
fixed-width=20
font, either Courier or Fixedsys, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>suddenly the numbers drop off at the =
decimal point:=20
e.g. 29.95 is now shown as 29,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and 1.49 is shown as 1, so things don't =
line up=20
still, and worse, the numbers are screwy.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm loading the controls with=20
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any ideas?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Irv</FONT></DIV>

--Boundary_(ID_R+kJccjra2TM6g5e/0pxXg)--

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu