Re: Splash Screen and Image Control Problem

Tech-Archive recommends: Fix windows errors by optimizing your registry



Rick

Screen.TwipsPerPixelX/Y always return integers, but it is possible using the
custom font size setting to get a value which is not an integer.

When I need this figure I make an object full screen get its scalewidth (and
scaleheight) in twips then change the scalemode to pixels and get the same
dimensions then divide one into the other. This is all done while the
program is loading so nothing is actually seen on the screen.

I always hated the non-standard font sizes but with LCD screens more common
use of this will be less unusual because these screens are best used at
their native resolution so if a user finds the fonts hard to read on a 17"
1280x1024 rather than lowering to 1024x768 which makes everything smear out
a bit, it is better to leave the resolution alone and use the large fonts
setting.

Dave

"Rick Rothstein" <rickNOSPAMnews@xxxxxxxxxxxxxxxxx> wrote in message
news:e3B%23HPJTFHA.2940@xxxxxxxxxxxxxxxxxxxxxxx
>> 'dpi = <result of API call>
>> dpi = 96 'assume it returns 96
>
> I don't think you need an API call to get the dpi value... I'm pretty
> sure this will give it to you directly
>
> dpi = 1440 / Screen.TwipsPerPixelX
>
> where 1440 is the number of Twips per logical inch. I'm not sure whether
> horizontal or vertical governs if TwipsPerPixelX and TwipsPerPixelY are
> not the same (although my guess is TwipsPerPixelX).
>
> Rick - MVP
>


.



Relevant Pages

  • Fedora 9 X dual monitor problem
    ... I recently "upgraded" my laptop from Fedora 8 to Fedora 9. ... Config file two screens, worked in F8, but not F9 ... It looks like glx is loading when you look at some parts of the log files, and that it isn't in others. ... I have Firefox and Thunderbird to use font sized 10 and 12 for most things, but sometimes they will show text using a font that looks like it's at least 20, and sometimes emails appear in a font too small to easily read, and in light grey. ...
    (Fedora)
  • Re: How to convert font metrics to screen metrics ?
    ... Character v, Arial.ttf, Size 10 ... the font designer drew his/her outlines to a body height of 2048 units ... so, anyway, we've got 83 dots to represent 2048 font units ... (most screens have a 3-by-4 aspect, ...
    (comp.fonts)
  • Re: Outlook Express email printing
    ... Does he mean print font do you think or just the font as it's displayed on ... screen because we used computers before the cunts had screens. ... These fancies arise in the soul, ... is but a dream within a dream. ...
    (alt.os.windows-xp)
  • Re: css selecting text "inside" elements
    ... The tab problem is not that big a deal and I'll probably let it ... You should not be having such small font for body. ... I have as impressive a set of screens on my desk as most ... Try as hard as you can to let heights find themselves without being ...
    (alt.html)
  • Re: A surprising irritation
    ... Jolly Roger wrote: ... selection window comes up but has two small a maximum size. ... "God DAMMIT why is the font palette so FUCKING small at the ... I don't like people having bigger screens. ...
    (comp.sys.mac.apps)