Getting Started with TMS FNC Directory Edit
Use TTMSFNCDirectoryEdit when users need to type or browse for a directory path from one editor.
Create a Directory Editor
- Drop
TTMSFNCDirectoryEditon the form. - Set
EmptyTextandDialogCaption. - Decide whether users can type directly with
EditorEnabled. - Handle
OnDialogCloseto validate or store the selected path.
TMSFNCDirectoryEdit1.EmptyText := 'Select an output folder';
TMSFNCDirectoryEdit1.DialogCaption := 'Select output folder';
TMSFNCDirectoryEdit1.EditorEnabled := True;
TMSFNCDirectoryEdit1.ButtonSettings.Text := 'Browse';
TMSFNCDirectoryEdit1.ButtonSettings.Align := debaRight;
TMSFNCDirectoryEdit1.LabelSettings.Text := 'Output folder';
TMSFNCDirectoryEdit1.LabelSettings.Position := delpLeftCenter;
TMSFNCDirectoryEdit1.OnDialogClose := TMSFNCDirectoryEdit1DialogClose;
Next Steps
| Task | Guide |
|---|---|
| Configure browse behavior and path validation | Directory selection |
| Add lookup suggestions while typing | Directory selection |