Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Resolution select window

Author
Message
Merak Spielman
16
Years of Service
User Offline
Joined: 14th Jul 2008
Location:
Posted: 10th Jun 2009 22:37
I'm trying to make a little window pop up before the main program starts so the user can select what resolution they want.

At first I thought I'd use a simple Windows window, with a dropdown box. I fiddled with that for a few minutes before I remembered why I hate Windows programming. DarkGDK is so simple, I forget how convoluted and complicated the Windows API is.

Is there a quick and dirty way to do this?
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 10th Jun 2009 23:29
Quote: "Is there a quick and dirty way to do this? "


No, you must use windows API

Windows API is very good when you know how to use it though

Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 11th Jun 2009 00:09
If you have a limited number of resolutions that you'll support then the tactic I'd take would be to create a screen with a list of the resolutions on it and a set of radio buttons next to them. That should be relatively easy to implement and it could have the same theming as the rest of your program.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
Phosphoer
16
Years of Service
User Offline
Joined: 8th Dec 2007
Location: Seattle
Posted: 11th Jun 2009 02:14
I usually just start the GDK program as an 800x600 window with all the possible resolutions, and the user clicks one and the program changes to that res before continuing.

Login to post a reply

Server time is: 2024-11-25 08:21:06
Your offset time is: 2024-11-25 08:21:06