TTMSFNCDirectoryEdit Class
Directory-picker edit control that combines a text field with a browse button for selecting a folder path.
API unit family: TMSFNCDirectoryEdit
Inherits from: TTMSFNCCustomDirectoryEdit
Syntax
TTMSFNCDirectoryEdit = class(TTMSFNCCustomDirectoryEdit)
Properties
| Name |
Description |
| AutoDirectoryLookup |
When True, the edit field suggests matching directories as the user types. (inherited from TTMSFNCCustomDirectoryEdit) |
| BitmapContainer |
Optional bitmap container used to resolve bitmap names for the browse button. (inherited from TTMSFNCCustomDirectoryEdit) |
| Button |
Provides direct access to the internal browse button control. (inherited from TTMSFNCCustomDirectoryEdit) |
| ButtonSettings |
Appearance and alignment settings for the browse button. (inherited from TTMSFNCCustomDirectoryEdit) |
| DialogCaption |
Title text shown in the directory picker dialog. (inherited from TTMSFNCCustomDirectoryEdit) |
| Edit |
Provides direct access to the internal edit field control. (inherited from TTMSFNCCustomDirectoryEdit) |
| EditorEnabled |
When True, the user can type a path directly in the edit field. (inherited from TTMSFNCCustomDirectoryEdit) |
| EmptyText |
Placeholder text shown when the edit field is empty. (inherited from TTMSFNCCustomDirectoryEdit) |
| LabelSettings |
Settings for the optional label displayed beside the edit field. (inherited from TTMSFNCCustomDirectoryEdit) |
| Text |
Currently selected directory path shown in the edit field. (inherited from TTMSFNCCustomDirectoryEdit) |
Methods
| Name |
Description |
| ClickButton |
Programmatically clicks the browse button to open the directory picker dialog. (inherited from TTMSFNCCustomDirectoryEdit) |
| IsValidDirectory |
Returns True if the path in the edit field is an existing directory. (inherited from TTMSFNCCustomDirectoryEdit) |
| SetBounds |
Sets the bounds of the directory edit and updates the label and button layout. (inherited from TTMSFNCCustomDirectoryEdit) |
Events
| Name |
Description |
| OnChange |
Fires when the selected directory path changes. (inherited from TTMSFNCCustomDirectoryEdit) |
| OnDialogClose |
Fires after the directory picker dialog closes, providing the result path and success flag. (inherited from TTMSFNCCustomDirectoryEdit) |
| OnDialogShow |
Fires before the directory picker dialog opens, allowing the initial path to be set. (inherited from TTMSFNCCustomDirectoryEdit) |
| OnLookupClose |
Fires when the autocomplete lookup list closes. (inherited from TTMSFNCCustomDirectoryEdit) |
| OnLookupIndexSelect |
Fires when the user selects an item by index from the autocomplete lookup list. (inherited from TTMSFNCCustomDirectoryEdit) |
| OnLookupNeedData |
Fires to populate the autocomplete lookup list with matching directory entries. (inherited from TTMSFNCCustomDirectoryEdit) |
| OnLookupOpen |
Fires when the autocomplete lookup list opens. (inherited from TTMSFNCCustomDirectoryEdit) |
| OnLookupSelect |
Fires when the user selects an item from the autocomplete lookup list. (inherited from TTMSFNCCustomDirectoryEdit) |
Used by