Forcing a video mode

Is it possible to force a video mode ( eg 640x480 x 16 color)  from a Delphi program, rather than having to deal with various resolutions?
If so, how is it done.  

I'm just beginning in Delphi!

Thank you
PeterO121799Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PeterO121799Author Commented:
Edited text of question.
0
edeyCommented:
You can, see the ChangeDisplaySettings function in the win32.hlp:


"The ChangeDisplaySettings function changes the display settings to the specified graphics mode.

LONG ChangeDisplaySettings(

    LPDEVMODE  lpDevMode,      
    DWORD  dwflags      
   );      "

It should be noted, though, that this is particularily "bad form", and should be avoided.


GL
Mike
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MadshiCommented:
Yep, I agree with Mike, your customers will definitely not like it, when you change the video mode - except you're running in fullscreen, like a game... But then you should use DirectX, there are functions available to switch to a different mode in DirectX full screen mode. And DirectX automatically restores the old resolution when the fullscreen mode is ended.

Regards, Madshi.
0
PeterO121799Author Commented:
Thank you for your advice, noted, and will read up on it!
0
edeyCommented:
Glad to be of service :)

GL
Mike
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.