how can I set screen resolution on windows lazarus / 39-Graphics ---------------------------------------------------------------------- Gebo · 2024-01-29 11:49 I want to assign the screen resolution to specific value.How can I do that. ---------------------------------------------------------------------- CCRDude · 2024-01-29 12:50 On Windows? ChangeDisplaySettings. No idea about other OS. Are you sure though that another approach might be more useful? ---------------------------------------------------------------------- RayoGlauco · 2024-01-29 13:07 There are exceptions to everything, but normally the end user does not like a program to change the screen resolution he has chosen. ---------------------------------------------------------------------- KodeZwerg · 2024-01-29 13:19 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. ---------------------------------------------------------------------- Gebo · 2024-01-29 13:30 Quote from: KodeZwerg on January 29, 2024, 02:19:56 pmIf 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. ---------------------------------------------------------------------- KodeZwerg · 2024-01-29 15:57 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*