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 / adding a ListView to DGDK window

Author
Message
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 29th Jun 2008 14:21
Adding a Listview in VC++ resources is easy as you just add an IDC_DIALOG in resources and visually add/draw your desired controls.

However in DGDK the main window is automatically drawn by DGDK, so how can I manually add a Listview to the the DGDK Window?
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 29th Jun 2008 23:46
Uh, I bet it is, you might need to use the globstruct or whatever header to get the handle.

jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 30th Jun 2008 20:29
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 31st Jul 2008 17:51
Can I use the CreateWindow() function and set the lpClassName parameter to Listbox ?

All I want to do is create a simple listbox, populate it with the available screen resolutions, let the user select the proper resolution and then read the selected resolution when the user presses the launch game button.

anyone managed to make something similar and can post some little bits of code?
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 1st Aug 2008 18:11
if you had visual studio, that would be easy, because you can make a form which then launches your gdk program. in express it may be harder. if there was a way to add args to a gdk program startup it would be easier jsut to get VB express and do it in there, but im not sure if there is.
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 1st Aug 2008 20:06
i HAVE visual studio not the express version.

how can i make a windows form that takes over the GDK windows that openes by deault? that's my basic problem!
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 1st Aug 2008 20:43
I don't think that you can. It's pre-compiled into the library for the GDK.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 1st Aug 2008 21:14
i know that you cannot get rid of the main gdk window.

so the only solution is to ATTACH a listbox TO the gdk window.

if anyone managed to do this, and hints, code or information would be greatly appreciated
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 1st Aug 2008 22:03
#include "globstruct.h"
g_pGlob->hWnd

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 2nd Aug 2008 11:28
Sephnroth wrote a brilliant tutorial for VS2003, I think that everything said is still valid for VS2008:

Menu's and Dialogs - DarkSDK Tutorial
(Note: The project template is for VS2003, I've opened it straight with VS2005... everything works, just replace 'DarkSDK' with 'DarkGDK' and 'LoopSDK' with 'LoopGDK')

Probably it should have come a sticky thread by the time it was published, uh
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 2nd Aug 2008 16:09
thanks a lot for the link!

however it does not compile well, there are some 10 link warnings:

Master Xilo
18
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 2nd Aug 2008 22:05
Try "release mode".
DGDK doesn't work (at all/well) in DEBUG mode...

Login to post a reply

Server time is: 2024-09-30 03:20:50
Your offset time is: 2024-09-30 03:20:50