Table of Contents

TIDEWatchListView Class

List view control that displays and manages debug watches in the Scripter Studio IDE.

Remarks

TIDEWatchListView is a TCustomListView descendant automatically displays all the watches defined in the current scripter IDE. The key property is Engine property which allows you to connect the watch list view to an existing TIDEEngine component. Once you do that, the list view is updated displaying the watches and its values. This component also provides methods for adding, deleting and editing the watches.

Syntax

Unit: IDEMain

TIDEWatchListView = class(TCustomListView);

Methods

Name Description
AddWatch Adds a new watch to the list view. No dialog is displayed, an empty (no expression) watch is created. The TatScripterWatch object associated with the watch is returned by the function.
DeleteSelected​Watches Delete the watches currently selected in the list view. No confirmation message is displayed, the watches are just deleted.
DlgAddWatch Opens a dialog for the end-user to add a new debug watch. Returns the created TatScripterWatch, or nil if canceled.
DlgEditSelectedWatch Opens a dialog for editing the watch currently selected in the list view. If no watch is selected, nothing happens.
Function returns true if the end-user confirmed the watch changes in the dialog.
DlgEditWatch Opens a dialog for editing the watch specified by the AWatch parameter.
Returns true if the end-user confirmed the watch changes in the dialog.
FindItemByWatch Finds the TListItem object in the list view associated with the watch specified by TatScripterWatch.
UpdateList Refreshes the list view, displaying the existing watches and update their values.

Properties

Name Description
Engine Points to the TIDEEngine component that will perform all IDE control.