DblClickValueRXY Action (Specific to PropertyGrid Controls)

Applies to TestComplete 15.10, last modified on December 15, 2021

Description

Each item of the PropertyGridControl control consists of the label and the data cell. The DblClickValueRXY action moves the mouse pointer to (X, Y) relative to the top left corner of the item's data cell, and then simulates a double click of the right mouse button over it.

Declaration

TestObj.DblClickValueRXY(Item, X, Y, Shift)

TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Item [in]    Required    Variant    
X [in]    Required    Integer    
Y [in]    Required    Integer    
Shift [in]    Optional    TShiftKey Default value: skNoShift   
Result None

Applies To

The method is applied to the following objects:

View Mode

To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Parameters

The method has the following parameters:

Item

Specifies the index or caption of the desired item whose label needs to be clicked.

The index is zero-based, that is, the index of the first item is 0. The index of the last item is wItemCount - 1.

The caption can contain asterisk (*) or question mark (?) wildcards or regular expressions. The asterisk corresponds to a string of any length (including an empty string), the question mark corresponds to any single character (including none). To specify more complicated parts of a caption, use regular expressions.

The caption can be case-sensitive or case-insensitive depending on the value of the Use case-sensitive parameters project setting.

X

Specifies the horizontal coordinate of the mouse cursor when clicking. The coordinate is relative to the cell’s top left corner.

Y

Specifies the vertical coordinate of the mouse cursor in the moment of clicking. The coordinate is relative to the cell’s top left corner.

Shift

Specifies whether the CTRL, ALT or SHIFT keys will be pressed during the click. The default value is skNoShift (no shift key pressed). See TShiftKey.

Result Value

None.

Remarks

  • If the specified item is not found, DblClickValueRXY fails and posts an error message to the test log.

  • If TestObj refers to an object of a non-DPI-aware application running with a DPI setting other than 100%, set the X and Y parameter values relative to the application (as if the application is running with the 100% DPI setting).

See Also

DblClickValueR Action (Specific to PropertyGrid Controls)
DblClickValueXY Action (Specific to PropertyGrid Controls)
ClickValueRXY Action (Specific to PropertyGrid Controls)
ClickValueXY Action (Specific to PropertyGrid Controls)

Highlight search results