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 V2b - Updated Function For DB Classic 1.2

Author
Message
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 9th Dec 2007 21:09
After a brand new 300Gig Sata hard drive died on me - the day after I backed up absolutely all of my DB and Delphi code archives (going back some 15 years!) onto it, I've been going through all of my CD and DVD archives.

I've come across a fair bit of miscellaneous but possibly useful stuff - much of it duplicated so I thought I'd have a good clean out.

So I'm going to test/fix/update some of it and put it up on the forums over the next few days.

To start with, here's V2b of my File Selector function. It's now been fixed and tested for the new DBC V1.2

File attached (9K) with doc file and demo program.

TDK_Man

Attachments

Login to view attachments
Jmahmood
18
Years of Service
User Offline
Joined: 3rd Apr 2007
Location: not sure
Posted: 10th Dec 2007 04:01
Quote: "So I'm going to test/fix/update some of it and put it up on the forums over the next few days."


Thats very kind of you....this file selector looks usefull for my games.Thanks

Visit http://eternity.freeweb7.com for product demonstration,Downloads,Screenshots and Public forum
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 10th Dec 2007 10:36 Edited at: 10th Dec 2007 10:36
I like it a lot. However there's a slight issue with the display, long filenames overlap the scrollbar.

"You must be someone's friend to make comments about them." - MySpace lied.
Jmahmood
18
Years of Service
User Offline
Joined: 3rd Apr 2007
Location: not sure
Posted: 10th Dec 2007 10:41
i didnt see that...we should fix it our self.

Visit http://eternity.freeweb7.com for product demonstration,Downloads,Screenshots and Public forum
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 10th Dec 2007 12:26
Ok.... Ping

It took a while to find. It was only overlapping because some of my filenames are capitalized, so I made the string 2 characters shorter. For files I changed the code so it will show as much of the filename as possible AND the extension e.g.
antidisestabl~.doc
Does that look alright?

"You must be someone's friend to make comments about them." - MySpace lied.
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 11th Dec 2007 02:08 Edited at: 11th Dec 2007 02:12
antidisestabl is the first few letters of the longest English word - antidisestablishmentarianism (28 letters) (ahn-tie-dis-es-tahb-lish-ment-tear-ee-uh-nih-sm).
Anyways, back on topic, I'll download it. I hope it looks good!

Seriously, how do you make the little blue text come up below your message?
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 11th Dec 2007 14:56
Quote: "antidisestabl is the first few letters of the longest English word - antidisestablishmentarianism (28 letters)"

it's the only thing I could think of that was long enough lol

Pixelator
17
Years of Service
User Offline
Joined: 8th Jul 2007
Location: here
Posted: 21st Dec 2007 02:22 Edited at: 21st Dec 2007 18:26
Even longer prepostcounterprodoantidisestablishmentarianiam (47 letters)


Beat that Sinani!


Maryville Game Developers
Visit our website at http://www.freewebs.com/maryville-game-developers/index.htm
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 21st Dec 2007 10:06
Titin. You lose. Owned.

"A West Texas girl, just like me"
-Bush
Pixelator
17
Years of Service
User Offline
Joined: 8th Jul 2007
Location: here
Posted: 21st Dec 2007 18:27
Quote: ""A West Texas girl, just like me""




I knew it!!!


Maryville Game Developers
Visit our website at http://www.freewebs.com/maryville-game-developers/index.htm
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 19th Jan 2008 22:21
I am trying to modify the function so that it will not display the extension. I'm trying everything and nothing is happening!!!!!!!!!!!!

Seriously, how do you make the little blue text come up below your message?
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 19th Jan 2008 23:00
That's because you don't know what you are doing!

Only kidding!

Updated function attached - with demo and instructions doc.

Actually, I'd forgotten about this function - I guess it really should be added to my GUI alert function collection post...

TDK_Man

Attachments

Login to view attachments
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 20th Jan 2008 00:09 Edited at: 21st Jan 2008 06:35
Thanks!
You said at the end of the readme file that it would be nice to put your name in the credits, put what should I put as your "Name?" I was thinking of your company name (I forgot it) but I'm not sure.
[EDIT]
I tried the new ShowExt parameter, unforunately it didn't work.
No worries, as this time I hacked your function successfully! MUHAHAHAHAHAHAHA!

Seriously, how do you make the little blue text come up below your message?
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 24th Jan 2008 22:43
I highlighted the part of the code that deals with the extensions in my edition (ha the word edition finally makes sense to me )

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 24th Jan 2008 22:54
Quote: "I tried the new ShowExt parameter, unforunately it didn't work"


What?? Please explain what doesn't work.

It works perfectly for me, so I'd be interested to know what goes wrong with it for you...

Quote: "I hacked your function successfully!"


Well what did you do then?

Forum etiquette deems that you should post your 'fixed' version for other users to benefit from.

TDK_Man

Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 25th Jan 2008 05:59 Edited at: 25th Jan 2008 06:01
Quote: "Forum etiquette deems that you should post your 'fixed' version for other users to benefit from."

I hacked so that I don't think anyone would really benefit... besides making the showext work, but I'll post it anyways.

I took out the Parent folder, disabled all the drive boxes, and made the showext parameter work.

Seriously, how do you make the little blue text come up below your message?
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 25th Jan 2008 20:03
All I really wanted to know was what happened when you used 0 as the ShowExt parameter.

If I use 0 then I see no extensions. If I use 1 then they come back.

What do you get?

If something isn't correct then I need to fix it!

TDK_Man

Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 26th Jan 2008 00:20
Strange... now the showext parameter does work! Interesting...

Seriously, how do you make the little blue text come up below your message?

Login to post a reply

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