Form Scale Mode

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • News Central

    #1

    Form Scale Mode

    I resize a control in a Form wth Scale mode set to vbInches. However, the
    control's size changes in different screen resolution, I thought that if
    Scale mode is set to vbInchs, then the control should have the same size
    regardless of screen resolution... can anyone tell me why? thanks :>


  • J French

    #2
    Re: Form Scale Mode

    On Fri, 12 Mar 2004 13:21:46 -0800, "News Central" <Bay@Bay.com>
    wrote:
    [color=blue]
    >I resize a control in a Form wth Scale mode set to vbInches. However, the
    >control's size changes in different screen resolution, I thought that if
    >Scale mode is set to vbInchs, then the control should have the same size
    >regardless of screen resolution... can anyone tell me why? thanks :>[/color]

    Insane as it sounds, inches on screen are 'logical inches'

    Put this in a new Form and resize it, then hold a ruler against the
    screen :-

    Private Sub Form_Resize()
    Me.ScaleMode = vbInches
    Label1.Caption = Str$(Me.ScaleWi dth)
    End Sub

    Comment

    • Steve Gerrard

      #3
      Re: Form Scale Mode


      "News Central" <Bay@Bay.com> wrote in message
      news:W_6dnX21wq Twt8_dRVn-hQ@baytsp.com.. .[color=blue]
      > I resize a control in a Form wth Scale mode set to vbInches. However,[/color]
      the[color=blue]
      > control's size changes in different screen resolution, I thought that[/color]
      if[color=blue]
      > Scale mode is set to vbInchs, then the control should have the same[/color]
      size[color=blue]
      > regardless of screen resolution... can anyone tell me why? thanks :>
      >
      >[/color]

      First, a link to an article called "Background on Fonts" at MSDN:

      http://msdn.microsoft.com/library/de...ml/ch17-02.asp

      The end of the article is a sub-section called "The Logical Inch
      Problem".

      Second, a brief summary:

      The screen is normally either 96 dots/inch (dpi) or 120 dpi. These are
      the settings "Small Fonts" (normal) and "Large Fonts" in the Display
      properties. Why 96 dpi? Partly because on most displays, small 8 pt text
      would hard to read if it were real size. Also that at 96 dpi, a 640
      pixel wide screen is equivalent to 6.7", the width of the printable area
      of a typical 8.5" wide piece of paper.

      Since displays range all over the place, from small laptops to wall size
      projectors, there is no attempt to correlate this with an actual inch.
      Who knows how far away your screen is from the projector, or what
      adjustments you have made to your monitor display area?

      Windows is setup this way intentionally, so that I can set my screen
      resolution lower, and find that everything appears larger, allowing me
      to sit back from the screen. Or set it higher, and see more stuff on
      screen at once.

      You could find out the screen resolution, and then account for that
      while setting your control width. Frankly, I would find it quite
      annoying if a program did not scale like other programs when I changed
      screen resolution, but suit yourself.


      Comment

      • Bob Butler

        #4
        Re: Form Scale Mode

        "News Central" <Bay@Bay.com> wrote in message news:<W_6dnX21w qTwt8_dRVn-hQ@baytsp.com>. ..[color=blue]
        > I resize a control in a Form wth Scale mode set to vbInches. However, the
        > control's size changes in different screen resolution, I thought that if
        > Scale mode is set to vbInchs, then the control should have the same size
        > regardless of screen resolution... can anyone tell me why? thanks :>[/color]

        In most cases there is no way to determine the physical monitor size
        so there is no way to accurately scale images to a specific physical
        size. With printers it is different because you can normally
        determine the physical print area size and make appropriate
        adjustment. vbInches may work fine for printing but is only good for
        relative sizing on the screen.

        Comment

        Working...