There already is a very good file selection DLL available which creates a standard interface which allows a user to select or specify files on the hard drive. However if one is creating a full screen DBC application, then the standard file selector DLL function does not work properly as the file specification interface is not displayed when invoked.
In June 2003 TDK_Man released his file selection function which provides a nice solution to this problem.
However, while incorporating his work into a project I encountered several problems in the implementation. I have corrected them, and with TDK_Man's permission I am releasing these 17 changes to the TDK_Man file selector to fix all observed problems and to provide several enhancements:
1) Added scroll wheel support
2) Allowed for interface tinting (set RGB components 0-100%)
3) Tweaked folder and file icon graphics and colors
4) Inverted beveling on OK & Cancel buttons
5) Darkened the drive box border
6) Made input variables for display font and size
7) Forced font to normal style and restore font style on exit
8) Removed the unnecessary 3D camera command
9) Now exits function on OK or CANCEL click down (not release)
10) Revised double click routine for program response stability (no more hangs)
11) Erased filename buffer before print to prevent text overstrikes
12) Fixed the display flicker of highlighted list item
13) Fixed so lower case extension filter *.ext can find upper case *.EXT
14) Fixed array access error when more than 1000 items in folder
15) Fixed divide by zero error for slider when exactly 11 items in folder
16) Fixed another divide by zero error for slider when exactly 10 items in folder
17) Added the missing trailing backslash for many return paths
Peace, the anti-Bush.