Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2023-05

Windows Display Settings

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

James Richters

Is there some way with FreePascal that I can Get / Set the windows display settings for multiple monitors like their resolutions, portrait/landscape, scale factors, and if they are disconnected or not?

James

Ondrej Pokorny
to James Richters
James Richters wrote 5 lines
Is there some way with FreePascal that I can Get / Set the windows display settings for multiple monitors like their resolutions, portrait/landscape, scale factors, and if they are disconnected or not?

That is more a WinAPI question than pascal.

Search for "delphi set display settings" or "winapi set display settings" in google to find some resources.

E.g.
https://stackoverflow.com/questions/956870/using-changedisplaysettingsex-in-delphi-to-set-primary-monitor

Ondrej