Board index » delphi » changing desktop resolution with delphi 3
patrick.berg...@t-online.de (patrick bergner)
Delphi Developer |
Sat, 23 Jun 2001 03:00:00 GMT
|
patrick.berg...@t-online.de (patrick bergner)
Delphi Developer |
Sat, 23 Jun 2001 03:00:00 GMT
changing desktop resolution with delphi 3How can I change the desktop resolution using a delphi application? thanks |
David Rifki
Delphi Developer |
Sat, 23 Jun 2001 03:00:00 GMT
Re:changing desktop resolution with delphi 3On Tue, 05 Jan 1999 01:45:58 +0100, patrick.berg...@t-online.de (patrick Quotebergner) wrote: are supported by the display adapter, and ChangeDisplaySettings to select one of them. Both should be documented in the Win32 SDK help file. -- |
Jaesen Jone
Delphi Developer |
Sat, 23 Jun 2001 03:00:00 GMT
Re:changing desktop resolution with delphi 3procedure ChangeResolution(iWidth: Integer; iHeight: Integer); var a : Boolean; i : LongInt; b : LongInt; DevM : TDEVMODE; begin //Call the API functions that change the display resolution i := 0; with DevM do repeat a := EnumDisplaySettings(pchar(0), i, DevM); i := i + 1; Until (a = False); DevM.dmFields := DM_PELSWIDTH Or DM_PELSHEIGHT; DevM.dmPelsWidth := iWidth; b := ChangeDisplaySettings(DevM, 0); ------- ChangeResolution(800,600); Works for me!! Regards |
Ken Whit
Delphi Developer |
Sat, 23 Jun 2001 03:00:00 GMT
Re:changing desktop resolution with delphi 3Patrick, See the Win32 API help file topics "EnumDisplaySettings" and You do know, I'm sure, that this is a bad idea - the user should be HTH Ken Clipper Functions for Delphi Quotepatrick bergner wrote: |
patrick bergn
Delphi Developer |
Sun, 24 Jun 2001 03:00:00 GMT
Re:changing desktop resolution with delphi 3games do always change the resolution, and thatfore I need it. it is easier to program. thanks for you advise. patrick Ken White schrieb: Quote> Patrick, |
Ken Whit
Delphi Developer |
Sun, 24 Jun 2001 03:00:00 GMT
Re:changing desktop resolution with delphi 3Patrick, Games don't change the resolution usually - they use DirectX, which The only games I've ever seen that required a resolution change without And because it's easier to program isn't an excuse for bad Ken Clipper Functions for Delphi Quotepatrick bergner wrote: |
patrick bergn
Delphi Developer |
Mon, 25 Jun 2001 03:00:00 GMT
Re:changing desktop resolution with delphi 3Does direct_x not change the screen resulotion? If not, then you are right. But I thought it does. What does it instead??? patrick Ken White schrieb: Quote> Patrick, |
kwhit
Delphi Developer |
Wed, 27 Jun 2001 03:00:00 GMT
Re:changing desktop resolution with delphi 3Patrick, No, DirectX does not change the screen resolution. What it does is Actually changing screen resolutions often requires a reboot, unless Ken Clipper Functions for Delphi Quotepatrick bergner wrote: |
2. Screen Size Changes with the change of video adapter resolution
3. Changing resolution in Delphi?
4. Changing Windows screen resolution through delphi
5. Changing screen resolution using Delphi 2.0
6. How do I change the Desktop Area using Delphi (please help)
7. MDI Child maximises to desktop resolution?
9. Printing problem: user changes printer resolution , fonts chang