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 / FileSelector V2 - Updated Function For DB Classic

Author
Message
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 15th Aug 2007 04:55 Edited at: 5th Nov 2007 15:23
Here's the new version of my FileSelector function for DB Classic.

Being a #Include function, it doesn't use DLLs so it's useful if you don't have the enhanced version of DBC as you can still have a mouse driven graphical interface in your programs when loading or saving files.



Included in the attached zip is the function, a demo program and the documentation file.

[Edit] !!!!! Ignore this download - later version in post below !!!

I think I've ironed out all the bugs, but if you spot anything, please let me know.

TDK_Man

Attachments

Login to view attachments
Pixelator
17
Years of Service
User Offline
Joined: 8th Jul 2007
Location: here
Posted: 15th Aug 2007 18:29
Thanks TDK, this is just what my program needed.

The problem with the gaming community is people think that the resolution of a game defines how good it is. I am not afraid to make a game where the main character is 50x50.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 15th Aug 2007 19:45
Just fixed a bug that I found which only occurred where there was exactly one more file in a folder than the number that can be displayed in the window.

Download: http://www.computechtenerife.com/zips/fileselectv2b.zip

(Please ignore attachment in above post).

TDK_Man

Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 15th Aug 2007 20:19 Edited at: 15th Aug 2007 20:23
Looks good
No media?
Have you ever tried making a 3D file selector/browser?
I'm thinking of making one. Corridors and rooms representing the file structure.
Not necessarily to be functional, but I'd like to make a game that used information gathered from the computer to create a unique world.

Your signature has been erased by a mod because it was rubbish.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 16th Aug 2007 03:28
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 16th Aug 2007 20:52
@TDK
I wonder if everyone appreciates just how much work goes into the look of the app alone - let alone it's functionality!

Thank you.

Enjoy your day.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 16th Aug 2007 22:16
I do, I made the beginnings of a windowed GUI lol

Your signature has been erased by a mod because it was rubbish.
Pixelator
17
Years of Service
User Offline
Joined: 8th Jul 2007
Location: here
Posted: 17th Aug 2007 00:40 Edited at: 19th Aug 2007 19:45
In the compiler that i used before i got DBC, it had a tool that you could make an amazing GUI, and then it pasted that code into your program.

(Y=M*X+B)=(X=(Y-B)/M)=(B=Y-M*X)=(M=Y-B/X)
and if you can figure out what it means i will give you a cookie.
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 7th Sep 2007 03:53
You might want to somehow fix the fact that the program crashes if there are ten files in the directory because you try to divide by zero. (for the 3d mode on at least, I haven't read through your whole script and I used it in a 3d situation). Its really great by the way, and it looks cool.

Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 7th Sep 2007 15:46
I'll take a copy. I might turn it into a skinnable version. Thanks!

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 8th Sep 2007 00:06
Luke:

May I refer you to my above post, (dated 15th Aug 2007 17:45).

Did you download that one, (where the bug you mention was supposedly fixed), or the one in the opening post?

TDK_Man

luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 8th Sep 2007 00:58
O, sorry. I probably downloaded it before you posted that and didn't look at the thread since. I only noticed because I tried to use it in one of my programs yesterday and it wouldn't work. I'll download the new one.
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 8th Sep 2007 03:57
I hate /0, it is the thorn in the paw of programming , it might even be a smilie
Have you tried converting it to "Blah*Blah" as *0 is 0 so no problem there

Try and work out what something/0 is, it's pretty weird lol, the answer is infinity isn't it? Because you can't do it; eg If I have 3 sandwiches (I'm eating a sandwich) and I don't give any to anyone and just leave them on the table, No one has any sandwiches so you might think that the answer was 0, but the sandwiches are still there they haven't vanished!

In programming, nothing exists
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 8th Sep 2007 04:34
It seems logical at first that something/0 is an infinitely large number, but when you put it into certain mathematical equations it makes no sense at all.
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 8th Sep 2007 19:45
Quote: "Have you ever tried making a 3D file selector/browser?
I'm thinking of making one. Corridors and rooms representing the file structure.
Not necessarily to be functional, but I'd like to make a game that used information gathered from the computer to create a unique world."

If it was on my hard drive, I would have a pretty big world

how do you make a sig?
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 8th Sep 2007 20:05
@Luke
I suppose you're right, because if it was infinity it would be greater than the number to begin with.

In programming, nothing exists

Login to post a reply

Server time is: 2025-06-02 06:20:50
Your offset time is: 2025-06-02 06:20:50