Recent

Author Topic: how can I set screen resolution on windows  (Read 860 times)

Gebo

  • New Member
  • *
  • Posts: 42
    • chahpander for lingeries
how can I set screen resolution on windows
« on: January 29, 2024, 12:49:30 pm »
I want to assign the screen resolution to specific value.How can I do that.
I like programming I begun by vb,vb.net,c# and finally free pascal and lazarus .I like martial arts sports and I am a kickboxer and made our team sport club called black eagle school I have a website for modern clothes..

CCRDude

  • Hero Member
  • *****
  • Posts: 611
Re: how can I set screen resolution on windows
« Reply #1 on: January 29, 2024, 01:50:49 pm »
On Windows? ChangeDisplaySettings. No idea about other OS. Are you sure though that another approach might be more useful?

RayoGlauco

  • Full Member
  • ***
  • Posts: 193
  • Beers: 1567
Re: how can I set screen resolution on windows
« Reply #2 on: January 29, 2024, 02:07:11 pm »
There are exceptions to everything, but normally the end user does not like a program to change the screen resolution he has chosen.
To err is human, but to really mess things up, you need a computer.

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: how can I set screen resolution on windows
« Reply #3 on: January 29, 2024, 02:19:56 pm »
If his app is running in fullscreen, then it is legitimate to switch screen resolution, of course app need to store original setup and on exit or crash set it back.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

Gebo

  • New Member
  • *
  • Posts: 42
    • chahpander for lingeries
Re: how can I set screen resolution on windows
« Reply #4 on: January 29, 2024, 02:30:36 pm »
If his app is running in fullscreen, then it is legitimate to switch screen resolution, of course app need to store original setup and on exit or crash set it back.
you are right so I need a way to get and set it.
I like programming I begun by vb,vb.net,c# and finally free pascal and lazarus .I like martial arts sports and I am a kickboxer and made our team sport club called black eagle school I have a website for modern clothes..

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: how can I set screen resolution on windows
« Reply #5 on: January 29, 2024, 04:57:17 pm »
Attached is a basic example, the sample itself does not run in fullscreen, it does:
- store original setting at startup
- list all possible modes
- on a click in listbox the mode will switch
- at a normal program exit the original mode will be restored

*Windows only*
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

 

TinyPortal © 2005-2018