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 / Still messagebox input

Author
Message
Dark Gamers
16
Years of Service
User Offline
Joined: 17th Mar 2008
Location:
Posted: 23rd Aug 2008 15:01 Edited at: 23rd Aug 2008 15:54
hi all, I need a inputbox.

Before the main game, I need a inputbox that accept input from user and make that input message as a parameter. And then, go ahead the main game.

How can I achieve this? Thanx.

scenario:
I have a game, I need the player type his name first, and then enter the game. There is a char to save that name, and display it on screen when the game is running.

Current Project: Synchronisation for Online Games
elantzb
16
Years of Service
User Offline
Joined: 10th May 2008
Location: Classified
Posted: 23rd Aug 2008 18:23
I'm going to suggest looking at combo boxes:
http://msdn.microsoft.com/en-us/library/bb775791(VS.85).aspx

~you can call me lantz~
SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 24th Aug 2008 06:07 Edited at: 24th Aug 2008 06:10
Combo boxes don't really make any sense. What he wants to do is get typed input returned as a char* or array. dbInput() can be used for this with the least flexibility but highest ease of use.

Additionally, you can use dbInk() and dbSetCursor before the input command to move the cursor to a more ideal location. However, this is still very limited.

Essentially all text/print settings apply to dbInput(), be it color, font, size, or face.


My site, for various stuff that I make.
elantzb
16
Years of Service
User Offline
Joined: 10th May 2008
Location: Classified
Posted: 24th Aug 2008 08:37
right, i'll either look into my suggestions or not bother to reply next time

~you can call me lantz~
Dark Gamers
16
Years of Service
User Offline
Joined: 17th Mar 2008
Location:
Posted: 25th Aug 2008 02:03
thank you all

Current Project: Synchronisation for Online Games

Login to post a reply

Server time is: 2024-09-30 05:35:23
Your offset time is: 2024-09-30 05:35:23