3
votes
Vote UpVote

Changing Screen Orientation Programmatically using Delphi

The Road to Delphi – In this post  i will show you how you can change the screen orientation using Delphi. to do this task you must use 2 winapi functions EnumDisplaySettings and ChangeDisplaySettings. EnumDisplaySettings: this function retrieves information about the graphics modes supported by the display device. for example to obtain the current display settings we must call this function in this way: var dm : TDeviceMode; ZeroMemory(@dm, sizeof(dm)); dm.dmSize   := sizeof(dm); if EnumDisplaySettings(nil, DWORD(ENUM_CURRENT_SETTINGS), dm) then begin //some code end; Now , to use the ...
Favorite? Off-Topic? Rodrigo @ 2011-02-11 06:56

Statistics

Visits: 741
Votes: 3
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Barton_Stano
ket555
stukelly
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)