|
-
May 15th, 2002, 11:04 PM
#1
Thread Starter
Hyperactive Member
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?
-
May 16th, 2002, 03:41 PM
#2
-
May 17th, 2002, 05:03 AM
#3
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.
-
May 17th, 2002, 06:37 AM
#4
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|