Results 1 to 4 of 4

Thread: Different Resolutions

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    332

    Different Resolutions

    How do I deal with users' different resolutions when creating a program?

    Is there any API to help deal with it?

    What if i design my program in 1024 X 768 and a user, who uses my program, views it in 800 X xxx resolution? Is there any way to always keep all the control elements intact, so that it'll be standardised across any resolution chosen?

  2. #2
    Megatron
    Guest
    See this link.

  3. #3
    DeadEyes
    Guest
    two simple options:
    1.
    Design App using a low resolution, it's still going to look ok at a higher res.
    2.
    Use an API to get the screen resolution then load one of two forms: frmLowResMain or frmHighResMain

    heres some api's

    WARNING: dont mess with peoples settings unless you are sure what you are doing, you could trash their monitor.

    Declare Function EnumDisplaySettings Lib "user32.dll" Alias "EnumDisplaySettingsA" (ByVal lpszDeviceName As String, ByVal iModeNum As Long, lpDevMode As DEVMODE) As Long

    Platforms

    Windows 95: Supported.
    Windows 98: Supported.
    Windows NT: Requires Windows NT 3.51 or later.
    Windows 2000: Supported.
    Windows CE: Not Supported.

    Description & Usage
    EnumDisplaySettings gets the display settings of one of a display device's graphics modes. Specifically, the function gets the display mode's resolution, color depth, and frequency, along with some additional information.

    Declare Function ChangeDisplaySettings Lib "user32.dll" Alias "ChangeDisplaySettingsA" (lpDevMode As Any, ByVal dwFlags As Long) As Long

    Platforms

    Windows 95: Supported.
    Windows 98: Supported.
    Windows NT: Requires Windows NT 3.5 or later.
    Windows 2000: Supported.
    Windows CE: Not Supported.

    Description & Usage
    ChangeDisplaySettings changes the current display settings. This function can change the current screen resolution and color depth, among other things. Typically, a call to EnumDisplaySettings should preceed this function, in order to adjust only the desired settings.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    332
    wat is the '.tag' field for?

Posting Permissions

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



Click Here to Expand Forum to Full Width