Naughter Software Logo

DDXFile v1.22 A freeware control for selecting a filename

For developers who use MFC, this is a control which subclasses an edit control to allow you to easily specify a filename. When the edit control is correctly setup it will look like:

DDX screen capture 1

 

The button beside the edit control sports a tooltip when the button is over it and when the button is hit a modified version of the common file open dialog is displayed to allow the user to select a filename as (assuming you are using VC6):

DDXFile screen capture 2

 

If you are using a later version of Visual C, then the file open dialog will include the vertical image strip of other locations to choose from. Both the caption and file extension filter can be customized. In addition the control integrates with the AutoCompletion functionality of Windows, so that a drop down list appears underneath the edit control which allows the user to quickly select a specific file. Other methods allow the developer to customize whether overwrites are notified to the user and only existing files allowed. The routine is most useful when you want to specify a filename from somewhere in the user interface but don't necessarily want to "Open" or "Save" a file. Note that the default button has the text "OK" as opposed to "Save" or "Open" which is what you normally would get with the standard common file dialogs.

The enclosed zip file contains source for the routine and also includes a VC 6 workspace file to build a small dialog based app to demonstrate the routine.

 

Copyright

 

Updates

v1.1 (17 September 1998)

v1.11 (11 December 1999)

v1.12 (14 May 2000)

v1.13 (17 May 2000)

v1.14 (18 July 2000)

v1.15 (24 May 2001)

v1.16 (27 December 2001)

v1.17 (9 January 2003)

10 January 2003

v1.18 (19 July 2006)

v1.19 (29 July 2006)

v1.20 (11 August 2006)

v1.21 (20 August 2006)

v1.22 (19 November 2007)