Results 1 to 4 of 4

Thread: DPI of 120 and Delphi 6 & 7

  1. #1

    DPI of 120 and Delphi 6 & 7

    Hi all. Recently my eyes got very tired at trying to read small text on my Sony laptop with its 13.3 inch display. I then changed the DPI to 120 (Running Vista) and it's much better.

    The problem that I'm having is with Delphi 6 & 7, all the forms suddenly has scroll bars for width and height and the forms' color looks like windows basic color. So it would seem that these versions of Delphi doesn't support a larger DPI setting.

    Is there a workaround, has anyone experienced the same thing?

    Edit: Found the following code on the net but it doesn't seem to do anything

    [pascal]procedure TForm1.FormCreate(Sender: TObject);
    begin
    Assert(not Scaled, 'TForm.Scaled property sucks, you should set it to False!');
    if Screen.PixelsPerInch <> PixelsPerInch then
    begin
    ScaleBy(Screen.PixelsPerInch, PixelsPerInch);
    end;
    end;
    [/pascal]
    Wake up from the dream and live your life to the full

  2. #2

    Re: DPI of 120 and Delphi 6 & 7

    set the form.scaled := false;

    However, for existing projects you will first need to set scaled to false on a computer with normal sized fonts.
    The views expressed on this programme are bloody good ones. - Fred Dagg

  3. #3

    Re: DPI of 120 and Delphi 6 & 7

    However, for existing projects you will first need to set scaled to false on a computer with normal sized fonts.
    Wow, thanks so much, it works!!
    Wake up from the dream and live your life to the full

  4. #4

    Re: DPI of 120 and Delphi 6 & 7

    You can also disable horizontal and vertical scrollbars on all forms. It is in most cases just annoying feature.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •