Declaration

property Options: TFindOptions

The value of the Options property is the selected set of options that determine how the Find and Replace dialog boxes appear and behave. These are the possible values that can be contained in the Options set:

Value Meaning frDisableMatchCase When True, the Match Case check box is dimmed and users cannot check it. When it is False, users can check the Match Case check box.

frDisableUpDown When True, the Direction Up and Down buttons are dimmed and the user cannot select either of them. When it is False, users can select one of the Direction Up and Down buttons.

frDisableWholeWord When True, the Match Whole Word check box is dimmed and user cannot select it. When it is False, users can check the check box.

frDown When True, the Down button is selected in the dialog box and the search direction is down. WhenfrDown is False, the Up button is selected, and the search direction is up. frDown can be set a design time, or users can change its value at run time when they use the dialog box.

frFindNext This is a flag that is set when the user chooses the Find Next button. When frFindNext is True, your application should search for the string in the FindText property.

frHideMatchCase When True, the Match Case check box is not visible in the dialog box. When it is

False, the Match Case check box is visible.

frHideWholeWord When True, the Match Whole Word check box is not visible in the dialog box.

When it is False, the Match Whole Word check box is visible.

frHideUpDown When True, the Direction Up and Down buttons are not visible in the dialog box.

When it is False, the Direction Up and Down buttons are visible.

frMatchCase When True, the Match Case check box is checked. When it is False, the Match Case check box is unchecked. You can setfrMatchCase at design time, or users can change the value at run time.

frReplace frReplace is a flag set by the system that indicates your application should replace the current occurrence of the FindText string with the ReplaceText string. frReplace applies only to the Replace dialog box.

frReplaceAll frReplaceAll is a flag set by the system that indicates your application should replace all occurrences of the FindText string with the ReplaceText string. frReplaceAll applies only to the Replace dialog box.

frShowHelp When True, a Help button appears in the dialog box when the dialog box displays.

WhenfrShowHelp is False, no Help button is present.

frWholeWord When True, the Match Whole Word check box is checked in the dialog box. You can setfrWholeWord at design time, or users can change its value at run time as they use the dialog box.

The default value is frDown], meaning that only the frDown option is in effect. Example

The following code calls the user-defined routine SearchDown if the Down button is selected in FindDialogl or it calls the user-defined routine SearchUp if the Up button is selected.

if (FindDialog1.Options*[frDown])=[frDown] then SearchDown else SearchUp;

For outlines

0 0

Post a comment