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
NickH
18
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 21st Oct 2011 13:24
Hi, I've been working on the finishing touches for the first version of a program which is on another thread:

http://forum.thegamecreators.com/?m=forum_view&t=190506&b=5

Does anyone still use the Darkside plugins for standard Windows requesters? I've used a few of the requesters without problem...with one exception. I can't seem to get it to filter the filerequester by filetype. Has anyone had any success with this? or is there another (newer) plugin I should consider for this sort of thing?

IlluminatedFX.com
For web design and graphic design services
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 21st Oct 2011 14:47
I did a very simple plugin but if you need more then I'll add more for the windows file requester...

http://forum.thegamecreators.com/?m=forum_view&t=190323&b=1&msg=2270581#m2270581

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
NickH
18
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 21st Oct 2011 17:22
Thanks WLGfx. How do you change the filetype filtering pattern list? Also that simple demo you have seems to crash if I cancel the dialog.

I've only looked at this very briefly though. The only dialogs I need to replace are the file requester (only for the filetype filtering) and the colour requester (because the Windows one is crap!). I'll be making my own mixer instead though.

Nick

IlluminatedFX.com
For web design and graphic design services
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 21st Oct 2011 18:15 Edited at: 21st Oct 2011 18:16
The fileselector works in C++ and that dll was just a quick knock up to get it working. I can easily add to it to check returns values and also to set the title and the file filters. I'm not in tonight but will get it done for you in the morning... I'll also see about the colour picker, I've not used but will see what I can do...

It seems the crash is because I am returning an empty string. I'll fix that too for you in the morning...

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
NickH
18
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 21st Oct 2011 18:57 Edited at: 21st Oct 2011 18:58
Thank you WLGfx.

I have a fully working Windows colour selecter. It's mainly just the filerequester that needs work. Once I've got a few more things off my to do list I'll create a custom colour mixer, which will require quite a bit of work, but I have some nice ideas for it.

Nick

IlluminatedFX.com
For web design and graphic design services
NickH
18
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 22nd Oct 2011 14:01
@WLGfx

I thought I'd just add that I do require the ability to filter for my 1 filetype in 2 of my requesters, but in another I need it to be able to filter multiple filetypes. This one basically is a list of image types that DBPro can load.

IlluminatedFX.com
For web design and graphic design services
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 22nd Oct 2011 15:03
Just testing a few settings then I'll upload the new FileSelector dll for you...

Adding: Load and Save dialogs. Directory and File selectors. Filter settings...

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
NickH
18
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 22nd Oct 2011 16:59
Thankyou very much WLGfx. I've added a few more little features to this today, but I think I'll have to get back to learning php and mySQL soon!

IlluminatedFX.com
For web design and graphic design services
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 22nd Oct 2011 19:21
I'm hoping to get that bug ironed out... I see what you mean by the Cancel button crashing it... Just checking out the MSDN library for more information on it...

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
NickH
18
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 22nd Oct 2011 21:24
Thanks

IlluminatedFX.com
For web design and graphic design services
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 22nd Oct 2011 23:40 Edited at: 22nd Oct 2011 23:43
I am going to need to ask in the dll forums as to why it's crashing when the Cancel button is being pressed. I've even tried to set the hWnd of the fileselector to DBP's window hWnd handle.

Attached is what I have so far which works as long as the Cancel button isn't pressed. I will get this fixed for you as soon as possible.

The commands in the DLL so far:



Notes for the functions in the dll so far:


I hope for the time being this will help. I'm more than determined to fix the crashing as soon as...

EDIT: Ooops... File is now attached...

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
NickH
18
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 23rd Oct 2011 02:55
Thanks WLGfx, No one usually helps me this much I'll send you a version of the program to test eventually...if you want?

I'll be looking at this tomorrow or Monday. I NEED to concentrate on my web design tomorrow

IlluminatedFX.com
For web design and graphic design services
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 23rd Oct 2011 03:04 Edited at: 23rd Oct 2011 03:06
I had the code sitting around anyway. Plus I have been working with plugins lately. And I had some gaps that needed filling in my time. I really didn't mind... If you eventually want the code for the plugin, I'll let you have that too.

EDIT: Yep, I'll test out your program when you have a working copy...

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
NickH
18
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 23rd Oct 2011 12:35 Edited at: 23rd Oct 2011 13:57
The only major thing wrong with my program as it stands is it's hunger for memory. Something I don't understand, but seems to be linked the resolution being changed when the window is resized. I would like to use this as a prototype and to develop it as a serious program in another language, but I've not used C or VB or anything similar...in a very long time!

Edit: I think some of the memory problems are down to the fact that D3D doesn't appear to release the memory used by loading a font when the screen res is changed, even though you have to reload it...This is why I need to use another language for this

IlluminatedFX.com
For web design and graphic design services
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 23rd Oct 2011 16:04 Edited at: 23rd Oct 2011 16:06
I only use DBP to proto type some things nowadays, I've been using C/C++ for a long time. Dark GDK is a good start if you want to move on. I'm addicted to this new PureGDK as it does give more freedom with programming but it is a lot more fiddly to setup projects.

From what I know about memory allocation is that after a while the system will flush all unused memory when it needs more so some programming languages will seem to hog it. I'm sure there's a command in there that does flush the video memory, something like that I'd throw in between level changes which stops the chances of a freeze up mid play.

EDIT: After doing some reading last night (couldn't do much, I was innebriated), I've found that using the windows InitCommonControls() and CoInitialize() functions should actually fix the crash bug. I'll post you any updates after...

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 25th Oct 2011 16:52
@NickH - After getting some amazing help with the fileselector from IanM it now works. I'm just testing out the two extras, a "ChooseColor" dialog and "ChooseFont" dialog. The three in total should be a major added bonus to DBP I hope.

When I get back from the hospital I'll finish off the testing of them and post them up for you complete with the .ini file and help files. They should come in handy for some...

What will be included: (All the standard Win32 API)

. Load / Save / Directory selection Dialogs.
. Colour Chooser - Allows you to choose a colour as in any art package.
. Font Chooser - Allows you to pick from your fonts on your PC.

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 26th Oct 2011 15:44
@NickH - see http://forum.thegamecreators.com/?m=forum_view&t=190738&b=18

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
NickH
18
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 26th Oct 2011 16:40 Edited at: 26th Oct 2011 16:43
Cool thanks WLGfx. Sorry I didn't get back quicker. I have almost countless numbers of websites to make right now, so this is a spare time thing I'm actually using my program more than adding to it. I'm guessing your colour selecter looks like the attached screenshot? Just curious to see if you've found a better one

Hospital! Hope it's nothing serious

IlluminatedFX.com
For web design and graphic design services
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 26th Oct 2011 17:03
Yep, that's the same color selector I've added. Just the standard windows color selector.

I'm back and forth to hospitals and doctors a lot lately. I'm hoping it's not too serious either. Last ones were for and MRI and an EEG.

At the moment the plugin works, but I will update very soon. I've had a few requests for the perlin noise plugin so I'm adding to that first then get straight back onto this one...

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
NickH
18
Years of Service
User Offline
Joined: 19th May 2008
Location: Nova Prospekt, North Yorks, UK
Posted: 26th Oct 2011 18:06
Cool. Thanks for your help on this!

As for the colour selecter, no problem, I have some ideas for some cool stuff in my custom selecter when I get round it! I only wish I'd made a slider gadget for my GUI system already! Just about the only thing I haven't made for it...and of course I need one now!

IlluminatedFX.com
For web design and graphic design services

Login to post a reply

Server time is: 2026-07-10 20:11:54
Your offset time is: 2026-07-10 20:11:54