OnSelectionChange Event

Applies to TestComplete 15.45, last modified on December 01, 2022

Occurs upon changing a list of file names that is displayed by a file-selection dialog.

Declaration

OnSelectionChange(Sender) Parameters
Sender [in] Required Variant

Applies To

The event applies to the following components:

TOpenDialog, TSaveDialog

Description

The OnSelectionChange event occurs when the user does something to change the list displayed in the dialog. This can include opening the file-selection dialog, highlighting a file or directory, selecting a new filter, selecting a new directory, or creating a new folder.

For more information on how to create event handlers for user form components, see Handling Events in User Forms.

Parameters

The event has the following parameter:

Sender

Contains a reference to the user form component that has raised the event.

Remarks

When the dialog is opened, events occur in the following order:

When the new file-filter is chosen, events occur in the following order:

When the folder is changed, events occur in the following order:

See Also

Handling Events in User Forms
OnFolderChange Event
OnTypeChange Event

Highlight search results