[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Dialogs' (#lcl)

# TFindDialog.SetFormValues

Stores property values in the class instance to the controls on the dialog form.

## Declaration

Source position: dialogs.pp line 507

`protected procedure TFindDialog.SetFormValues; virtual;`

## Description

SetFormValues copies values from the properties in the class instance to the controls displayed on the dialog form. This includes the values in FindText and Options.

Enumeration values in Options are examined and applied to the radio button or check box used to represent a specific value. The Help button on the dialog form is made visible when frShowHelp is included in Options. The Scope check box is made visible when frHideEntireScope is not present in Options.

SetFormValues ensures that the edit control for FindText is the active control on the form and its text content is selected.

SetFormValues is called from the Execute method, and occurs after the form instance has been created and positioned. It is called before the form is displayed and executed using its buttons.

See GetFormValues for the actions performed when the Find button is clicked on the dialog form.

## See also

TFindDialog.FindText |  | Contains the text to locate when the Find button is clicked on the dialog form.
TFindDialog.Options |  | Contains the find / replace options enabled for the dialog.
TFindDialog.GetFormValues |  | Retrieves values from the dialog form and stores them in the properties for the class instance.
TFindOptions |  | Set type used to store TFindOption enumeration values.
TFindOption |  | A list of possible options which can be used in Find dialogs.