Getting Started with TMS FNC Find Dialog
Use TTMSFNCFindDialog when users need a reusable search dialog with history, search options, and find/next/set-marker commands.
Create a Find Dialog
- Drop
TTMSFNCFindDialogon the form. - Set
FindTextor prefillFindListwhen the dialog should start with search history. - Configure
OptionsandVisibleOptionsfor the search controls you want to expose. - Handle
OnFindandOnFindNextto run the search and setAFound. - Call
Executeto show the dialog.
TMSFNCFindDialog1.FindText := 'customer';
TMSFNCFindDialog1.FindList.Clear;
TMSFNCFindDialog1.FindList.Add('customer');
TMSFNCFindDialog1.FindList.Add('invoice');
TMSFNCFindDialog1.AutoHistory := True;
TMSFNCFindDialog1.Options := TMSFNCFindDialog1.Options + [fdoCaseSensitive, fdoCloseIfFound];
TMSFNCFindDialog1.OnFind := TMSFNCFindDialog1Find;
TMSFNCFindDialog1.OnFindNext := TMSFNCFindDialog1FindNext;
TMSFNCFindDialog1.Execute;
Next Steps
| Task | Guide |
|---|---|
| Configure search options, history, and callbacks | Search dialog workflow |
| Enable the extended multi-line search area | Search dialog workflow |