This ActiveX edit control has a customizable action button with options for user-defined, select file, and select directory actions.
With AZXButtonEdit, you have the power to open a file select dialog, directory select dialog (in two modes), or create your own action on button push. All dialogs are fully customizable, including captions, filters, starting folders, and the ability to show a 'Help' button inside a dialog.
The .ZIP file includes everything you need to get started, including a setup for the trial version of the control, a help file, license, and the source of VB demo project. Here is a brief description of the control's properties, methods, and events:
Properties List:
- ActionStyle: specifies the action to make on button click
- ActionDirSelect_DialogCaption: specifies the caption for the select directory dialog (used only if ActionDirSelect_WinStyle is False)
- ActionDirSelect_HelpContext: specifies the Help context ID for the select directory dialog (used only if ActionDirSelect_WinStyle is False)
- ActionDirSelect_Options: specifies options for the select directory dialog (used only if ActionDirSelect_WinStyle is False)
- ActionDirSelect_Root: specifies the root folder for the select directory dialog (used only if ActionDirSelect_WinStyle is True)
- ActionDirSelect_WinStyle: determines the style for the select directory dialog
- ActionFileSelect_DialogCaption: specifies the caption of the file select dialog box
- ActionFileSelect_InitialDir: specifies the starting directory for the file select dialog box
- ActionFileSelect_Filter: specifies the filter string for the file select dialog box
- ActionFileSelect_HelpContext: specifies the Help context ID for the file select dialog box
- ButtonWidth: specifies the width of the button in pixels
- HideSelection: determines whether the visual indication of the selected text remains when focus shifts to another control
- MaxLength: specifies the maximum number of characters the user can enter into the edit control
- ReadOnly: determines whether the user can change the text of the edit control
- Text: contains a text string associated with the control
- Visible: determines whether the control is visible
Methods List:
- PathValid: returns True if the path entered in the control exists; otherwise, it returns False (also returns False if ActionStyle is not asDirSelect)
- FileNameValid: returns True if the file entered in the control exists; otherwise, it returns False (also returns False if ActionStyle is not asDirSelect)
Events List:
- OnButtonClick: raised when the button is clicked
- OnChange: raised when the text property of the control is changed by the user or programmatically
- OnCanResize: raised when the size of the control is to be changed
- OnClick: raised when the user clicks inside a control
- OnDblClick: raised when the user makes a double click inside a control
- OnResize: raised when the control is resized
Overall, AZXButtonEdit is a versatile and intuitive ActiveX control that can greatly simplify your file and directory selection needs, while saving you time and
Version 1.1: N/A