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 Discussion / Message Box

Author
Message
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 27th Jul 2004 12:46
I am making a level editor for my game, but I can't figuire out how to load in a map. I can do it, but I wanna make it nice and pretty, but I can't figuire out a messagebox method. Any one have suggestions (I have all the data, I just need a good method of displaying it)

Thanks,
Matt

"Could you do something where you don't need a video card cause i don't have one" - Program Expert
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 27th Jul 2004 13:11
There's MagicWindows. Basically it is a system for making windows in DBC and you can put various messages and gadgets on them, it's a really intuitive set of commands.
http://cordierfr.free.fr/html/index.html

Crazy Donut Productions, Current Project: Project Starbuks
Sony stole our name!
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 28th Jul 2004 21:23
Mattman, if you have DBC Enhanced, I could point you in the right direction for info on API calling and the dialogues etc.

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 29th Jul 2004 09:55
Ooh, thank you Jess, I've never been able how to use most windows dlls, don't know their function names and all, I would very much appreciate it.

Bear Crazy : Thank you for that link, I'll take a look

"Could you do something where you don't need a video card cause i don't have one" - Program Expert
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 29th Jul 2004 11:44
Firstly, have a look at http://www.allapi.com and download their API Guide.

It's got alot ( but definatly not all ) of the API functions listed in there, with VB source examples too.

Specifically, in the "Catergories" section, have a look at "Dialogues" I believe it is.



Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 30th Jul 2004 00:05 Edited at: 30th Jul 2004 00:10
Umm, that site kinda sucks. I couldnt find anything I wanted. Do you mind emailing me the document if you have it or show me how to get to it at that site please

thanks,
matt

"Could you do something where you don't need a video card cause i don't have one" - Program Expert
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 30th Jul 2004 01:03
Honestly, win32 message boxes are annoying in DBC programs. Better draw them manually using as few drawing commands as possible, to keep the speed up.

Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 30th Jul 2004 20:57

I posted the wrong link, sorry Mattman.
It should be allapi.net

Here's the link to the download page anyways;
http://www.mentalis.org/agnet/appdown.shtml

Just going over the API calls, and I just realised that for an open/save dialogue, you'll have to do a fair bit of setting up with Hex values etc in a memblock to imitate the VB structure that the example provides. But, it shouldn't be too hard, just tedious.

And... ARKHEII! Where you been bro?
I posted that code you requested a long time ago, for the full-screen desktop window mode for DBC in the Speed Tips thread, have a look

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 30th Jul 2004 22:59 Edited at: 30th Jul 2004 23:04
Lol, I was talking about the speed in general. The message box just feels messy. If you try imitating a winxp message box using the sprite/drawing commands, then you know that no speed tip can save your ass. I just had some *bad* experiences with the msg box, so I never dared try them again. Maybe I should try it with your fullscreen code...

I can't figure out RobK's trick though. How the hell did he draw command buttons in a DBP window? Has anyone been able to show buttons in a DBC window? I've made separate child "toolbox" windows but I can't make any other window show up within a DBC window.

Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 31st Jul 2004 02:22
Thanks Jess, I thought you had more sense to to send me a nonsense link

"Could you do something where you don't need a video card cause i don't have one" - Program Expert

Login to post a reply

Server time is: 2025-05-26 00:00:01
Your offset time is: 2025-05-26 00:00:01