OnHelpCalled Event

Applies to TestComplete 12.60, last modified on September 17, 2018

Occurs when the Help button in the Operation Parameters dialog is pressed.

Declaration

OnHelpCalled(Data) Parameters
Data [in] Required Object

Description

Users can use the standard Operation Parameters dialog to modify parameters of custom keyword test operations. This dialog contains the Help button that allows the operation’s developer to display help information about the operation. By default, a click on this button displays the Operation Parameters Dialog topic.

To make the Help button open a custom help topic, you need to handle the OnHelpCalled event, which is raised when a user clicks this button. To display the desired help topic, use the appropriate method of the Help object. See Calling Help for Script Extensions.

Parameters

The event has one parameter:

Data

An object that provides access to the operation fields. This object contains properties that correspond to individual operation fields and whose names coincide with the field names.

Example

The sample event handler below opens the MyExtension.chm file in the help viewer and display the topic with ID 100:

JScript

function MyOperation_OnHelpCalled(Data)
{
  Help.ShowContext("MyExtension.chm", 100);
}

VBScript

Sub MyOperation_OnHelpCalled(Data)
  Help.ShowContext "MyExtension.chm", 100
End Sub

See Also

Events Reference
Help Object
Creating Keyword Test Operations
Calling Help for Script Extensions

Highlight search results