Bob,
Thank you very much for your time and thoughts. The link was very useful and it
was a dood suggestion, but the I-Mate doesn't use pixel doubling and works
fine. I think I've got over the problem with the following code, which I
thought I'd include here as it will end up in the message archives for anyone
with a similar problem in future (I call it before drawing the text).
Sub setfontsize
for ccc=1 to 20
graph.fontsize=ccc
if graph.textwidth("xxxxxxxx") > 45 then
exit for
end if
next
End Sub
Best wishes,
Andrew.
-----Original Message-----
From: Bob Katayama <[EMAIL PROTECTED]>
Sent: 28 September 2008 23:05
To: [EMAIL PROTECTED]
Subject: RE: [nsbasic-ce] Picturebox font size problem
Here is some information on pixel doubling.
http://msdn.microsoft.com/en-us/library/bb431747.aspx
Hope this helps.
Bob
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Bob Katayama
Sent: Sunday, September 28, 2008 5:45 PM
To: [EMAIL PROTECTED]
Subject: RE: [nsbasic-ce] Picturebox font size problem
Just from reading what you have posted, the HP HX2790 screen has a 320 X 240
resolution and the Toshiba g900 has an 800 X 480 resolution.
Therefore the text will be smaller on the HP HX2790 if the font size is hard
coded and variable depending on screen resolution.
Bob
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andrew Thomas
Sent: Sunday, September 28, 2008 5:39 PM
To: NSB CE Yahoo Group
Subject: [nsbasic-ce] Picturebox font size problem
Hi,
I'm having a problem with the picturebox control and wondered if anyone can
help. I have a non-commercial program and have tested it on a Toshiba g900
and an old imate jam. On both I get sensible text sizes using
graph.fontsize=9 (and even without this setting).
However, a user has used the program on a HP HX2790 and he gets very small
text, maybe half the size, but in the correct position (i.e. not a
resolution problem).
Is anyone able to tell me how to get around this?
Many thanks in advance.
Andrew.
[The entire original message is not included]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nsb-ce" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/nsb-ce?hl=en
-~----------~----~----~----~------~----~------~--~---