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.

DarkBASIC Professional Discussion / .DLL Input Box function?

Author
Message
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 9th Nov 2003 15:24
Does anyone know the function to call when you want an input box in your program?
i know to get a message box you load the user32.dll and then


but can i make it so an input box pops up, so that i can get input from the user? Its either this or writing my my own input box function, which won't be fun


Go on, click on my signature image, you know you want to
Favourite smiley>>>
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 9th Nov 2003 15:46 Edited at: 9th Nov 2003 15:46
You can either buy RobK's BLUE system for thing like that or IanM might have something.


Avatar & Logo by Indi. Mirrors are more fun than television.
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 9th Nov 2003 15:51
can't you call it straight from a .dll? like i can with a message box? I'll have to wait till next week to buy RobK's BLUE system thingy, otherwise


Go on, click on my signature image, you know you want to
Favourite smiley>>>
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Nov 2003 15:53
Nope, not me.

BLUE is definitely the way to go for ease, or you could write your own function to do it - I did at one point
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 9th Nov 2003 16:00
so i can't get a windows input box up using a .dll? even though its possible with a message box? you don't still have that function lying around do you IanM? if so would i be able to take a look at it?


Go on, click on my signature image, you know you want to
Favourite smiley>>>
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 9th Nov 2003 16:03 Edited at: 9th Nov 2003 16:04
The problem with edit boxes is that you need to process window messages.
To process window messages you need a callback.
DBPro doesn't do callbacks...

Writing your own is the best way.


Avatar & Logo by Indi. Mirrors are more fun than television.
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 9th Nov 2003 16:06
Oh ok. Thats a shame would of made what i'm doing right now alot easier. If anyone has any input functions which will work with the backdrop on could they show me please


Go on, click on my signature image, you know you want to
Favourite smiley>>>
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Nov 2003 16:14
It depends on whether you want the action to stop or continue.

Here's the code that stops everything while you enter your input
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Nov 2003 16:15
... and here's the code that keeps the action going - press the ` key to open the input box, and enter the word 'quit' to exit the program
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 9th Nov 2003 16:23
brilliant! thanks IanM!


Go on, click on my signature image, you know you want to
Favourite smiley>>>
Jess T
Retired Moderator
22
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 10th Nov 2003 13:13
Ah... yes, thanks IanM, that wil help our project a great deal, and will save ReD_eYe a fair bit of work... Trully Brilliant...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 10th Nov 2003 13:37
Naturally ... (he says, doing his best TCA impression )
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 10th Nov 2003 17:47
Ah - copyright infringment...


Avatar & Logo by Indi. Mirrors are more fun than television.
Jess T
Retired Moderator
22
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 12th Nov 2003 09:02
lol... Thanks TCA... lol...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy

Login to post a reply

Server time is: 2026-07-26 15:31:47
Your offset time is: 2026-07-26 15:31:47