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.

Author
Message
Puzzler
22
Years of Service
User Offline
Joined: 18th Jan 2003
Location: United Kingdom
Posted: 18th Jan 2003 19:05
Is it possible to make drop down menus and toolbars in dbpro? (Any help would be appreciated)
Piecing together the puzzle of Dark Basic- Puzzler
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 18th Jan 2003 19:23
no

xxxpetratxxx
B. R. W
Puzzler
22
Years of Service
User Offline
Joined: 18th Jan 2003
Location: United Kingdom
Posted: 18th Jan 2003 19:25
Oh. Thanks anyway. [img][/img]

Piecing together the puzzle of Dark Basic- Puzzler
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 18th Jan 2003 20:04
I've made an XP dropdown function, but it's on my PC which is being repaired at the moment.

Visit [url]www.lightning-systems.co.uk[/url] :: [url]www.realgametools.net/forums[/url]
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 18th Jan 2003 20:41
YES its very possible - relatively easy infact, but you have to design and program them yourself. There is no command specifically to do this. but to just say NO is kinda misleading. Almost anything is possible in DBP if you work around it

Puzzler
22
Years of Service
User Offline
Joined: 18th Jan 2003
Location: United Kingdom
Posted: 18th Jan 2003 20:49
I've been trying to do it using avi's for each menu, and adding the Menu toolbar to the background. [img][/img]

Piecing together the puzzle of Dark Basic- Puzzler
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 18th Jan 2003 21:06
No, much easier than that. Shame I don't have it to hand

Visit [url]www.lightning-systems.co.uk[/url] :: [url]www.realgametools.net/forums[/url]
ShockFire
22
Years of Service
User Offline
Joined: 18th Jan 2003
Location: United Kingdom
Posted: 18th Jan 2003 21:19
Wow, there must be thousands of ways of doing it (well nearly )

The easiest i'd say is to draw a menu bar in paint, then draw each individual drop down bit, save them all as bmps, then if the mouse is clicked in a certain area you show the specific bmp needed. Hope that makes sense lol. But this way would make your exe alot bigger, as bmps are big.

You could simply do it with text (although it wouldnt look too hot).

I bet theres also a way to make it look like windows, maybe theres a DLL out there that lets you import the actual windows style.

"no" isnt really an answer. As kangaroo2 said, you can do nearly anything. Hell, you could do this in DB1 nevermind DBP.

Puzzler
22
Years of Service
User Offline
Joined: 18th Jan 2003
Location: United Kingdom
Posted: 19th Jan 2003 01:24
It's a shame David89's function isn't available. [img][/img] Would you mind e-mailing it to me when your PC cpomes back? [img][/img]
Thanks to everyone for your help. [img][/img]

Piecing together the puzzle of Dark Basic- Puzzler
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 19th Jan 2003 01:45
If you dont want to use bitmaps you could use gif or jpg in dbp (much smaller) or even draw the menu in boxes lines and text coords

the architect
22
Years of Service
User Offline
Joined: 6th Jan 2003
Location: United Kingdom
Posted: 19th Jan 2003 02:46
I use subroutines for each part of a menu I do but I tend to rely on one routine throughout and reuse it through cut n paste, and altering values where appropriate.

I'm sure I can reduce the code even more by use of arrays but right now I dont need to.

David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 19th Jan 2003 14:45
Sure, that's if my HD can be recovered

And sily me not to back up...

PS - My function is pretty ood, it nly has rom for 3 items though (I'll recode soon) but it has that authentic XP look!

Visit [url]www.lightning-systems.co.uk[/url]
You are the th person to view this signature.
The One Ring
22
Years of Service
User Offline
Joined: 15th Sep 2002
Location: United States
Posted: 19th Jan 2003 22:16
Puzzler, I've posted some code on my old GeoCities site. Its a basic popup menu with highlighting menu items and mouse click processing.

There's a lot that could (and should) be done with it, but it could help you get started.

http://www.geocities.com/the_one_ring/code/darkbasic/basic-popup-menu-db.htm

AMD Athlon 900 768MB DDR
ATI Radeon 64MB DDR All-In-Wonder 7500, ATI XPert 128 16MB
Sound Blaster Audigy Gamer w/FireWire Support
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 20th Jan 2003 01:36
I suppose you could do it using a plugin DLL - but if you don't mind poorer graphics quality then you can code your own - drawing using lines, images, text & boxes and using arrays and so on to keep track of things.

NOBODY has a forum name as stupid as Darth Shader. I do.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 20th Jan 2003 18:58
Argh! What went wong on my last post?

Try again...


PS - My function is pretty good, it only has room for 3 items though (I'll recode soon) but it has that authentic XP look!

Visit [url]www.lightning-systems.co.uk[/url]
You are the th person to view this signature.
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 23rd Jan 2003 03:43
i said no coz even if u can do it..its still almost impossible to program

xxxpetratxxx
B. R. W
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 23rd Jan 2003 13:04
Not really, its just a load of if/then/goto/gosub/function statements. Its simple programming, but can look messy or complicated. Make sure u use a lot of rem statements

John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 23rd Jan 2003 13:50
Hey everyone (everyone gasps at the appearence of RPGamer in the pro forum) Yes this is VERY possible, for I have seen it done!

There was a snippet on RGT im pretty sure, and a snippet on the DarkARCHIVES CD, but that was made in REG. Im sure if it can be done in regular DB, it should be doable in pro.

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
ShockFire
22
Years of Service
User Offline
Joined: 18th Jan 2003
Location: United Kingdom
Posted: 23rd Jan 2003 22:04
lol i dont know what the fuss is, most of you i remember from the old forums, surely you are all *proper* programmers now?

I mean, this maybe a little time consuming (maybe take about an hour and half to code AND do pictures, if you do it the easy way). Ohwell, im bored, i'll talk you through the easy way with bitmaps (a quick over view, im hopeing 'Puzzler' has some db programming knowledge )

Anyway, first:
Make a bar in paint, lol nice and easy, it'll look like this (i'll do this in a code box so the forums doesnt screw me )


lol, i hope that looks alright :S

Then make the drop down menus in seperate bitmaps too, eg.



Anyway, then load the actual bar into DB, and check for mouse clicks on any of the menu buttons.

Then inside the IF statement used, you will load and display the dropdown menu in the designated area (ie below the button clicked). You can then check for clicks on the menu bar items, and once clicked do whatever you want. Also check for any clicks outside of the dropdown menu, as then you can delete the dropdown menu image and make it look like the user has "clicked off" the menu.

I mean this is a menu bar in its simplist form, see, that wasnt next to impossible was it? It shouldnt look or be too bad either, (depending how your graphical skills are ).
I mean if you wanted to go a step further, you could create roll-over buttons and stuff with ease, to make it look even better.

Anyway, anything is possible with DB (well definately in dbp!). I mean if you wanted, you could make DBP make your breakfast in the morning and turn the TV on (although you would need to make or buy a mechanical arm, and program nearly all the code in c++ or similar), but still, it can be compiled in dbp! lol
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 24th Jan 2003 01:21
Thanks Shockfire - I couldn't be bothered to post an actual answer - you're right tho its so easy you'd think most users would be able to improvise something like this by now?

ShockFire
22
Years of Service
User Offline
Joined: 18th Jan 2003
Location: United Kingdom
Posted: 24th Jan 2003 22:34
yeah, i couldnt be bothered at first, but i managed to write that in less than 5mins suprising. Do you like my little example 'text' images? I thought they were really kewl.
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 24th Jan 2003 22:54
Yeah, pwetty lol

MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 24th Jan 2003 22:59
Are any of these generic or just for specific purposes ?

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
ShockFire
22
Years of Service
User Offline
Joined: 18th Jan 2003
Location: United Kingdom
Posted: 24th Jan 2003 23:14
eh?
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 24th Jan 2003 23:15
Can they use used in different graphics modes, fonts etc etc...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
ShockFire
22
Years of Service
User Offline
Joined: 18th Jan 2003
Location: United Kingdom
Posted: 24th Jan 2003 23:38
yeah well obviously, do what you want with it, dont take no bull from me lol. Its only an example how to create one, the above doesnt tell you what size to make your bitmaps (doesnt even mention it lol). I mean all it is is some sprites, its just that some sprites are only displayed when someone clicks in a special area. I mean its just like programming a very simple 2d game, using sprites that get shown at different actions... i hope thats what you meant lol.

Login to post a reply

Server time is: 2025-05-17 15:57:58
Your offset time is: 2025-05-17 15:57:58