• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 236
  • Last Modified:

Dispaly

How to change display Settings, Colors, and Screen area???
0
ILPowerSoft
Asked:
ILPowerSoft
1 Solution
 
BoRiSCommented:
ILPowerSoft

You need to use the GetSystemMetrics, SystemParametersInfo API to handle all of these...

to retrieve all the info, use

GetSystemMetrics(CM_CXFULLSCREEN or CM_CYFULLSCREEN);

or

SystemParametersInfo(SPI_GETWORKAREA, 0, YourRect, SPIF_UPDATEINIFILE);

to set the work area etc...

SystemParametersInfo(SPI_SETWORKAREA, 0, YourRect, SPIF_UPDATEINIFILE or SPIF_SENDCHANGE);

Check the win32.hlp file for more info on this

Later
BoRiS
0
 
MadshiCommented:
Perhaps you should look at winAPI EnumDisplaySettings and ChangeDisplaySettings, too.

Regards, Madshi.
0
 
ILPowerSoftAuthor Commented:
plaes giv my an a exmp for the answer
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
ILPowerSoftAuthor Commented:
So !!!!!!
0
 
ILPowerSoftAuthor Commented:
How can I display my Form in 256 colors when the system works
in 16bit or 24bit or more?  
0
 
ILPowerSoftAuthor Commented:
How can I display my Form in 256 colors when the system works
in 16bit or 24bit or more?  
0
 
intheCommented:
http://www.inprise.com/devsupport/delphi/qanda/749.html

gives full code for change display settings.

and :

http://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=10129253 
about halway down this question you will find some code i did for someone else to change colors of windows settings.
be carefull with it as you may mess up your colors because some of the names are decieving.
Regards Barry

0
 
intheCommented:
hi again
i have found better code for changing the display settings
than what is on the borland site
leave your email address so i can send to you it comes with example.
0
 
ILPowerSoftAuthor Commented:
ian@gezernet.co.il
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now