wVisible Property (Specific to Win32, MFC ToolBar and MFC MenuBar Controls)

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

The wVisible property specifies whether a control item is visible.

Declaration

TestObj.wVisible(Item, ByPosition)

Read-Only Property Boolean
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    
ByPosition [in]    Optional    Boolean Default value: False   

Applies To

The property is applied to the following objects:

View Mode

This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.

Parameters

The property has the following parameters:

Item

Specifies either caption, identifier or position on the control (from 0) of the desired item. For more information, see the Remarks section.

ByPosition

Specifies whether the Item parameter specifies the identifier or position on the control of the desired item. For information on which of these values is used, see the Remarks section.

Property Value

True, if the item is a visible, and False, if the item is hidden. If the specified item could not be found, the property also returns False.

Remarks

You can specify the desired control’s item by assigning item’s caption, identifier or position on the control to the Item parameter. Therefore, if this parameter holds a string, TestComplete identifies the item by caption. When Item specifies the caption, you can use wildcards (* and ?) or regular expressions to mark variable parts of the caption. The caption can be case-sensitive or case-insensitive depending on the value of the Use case-sensitive parameters project setting. If Item holds an integer value, then TestComplete checks the ByPosition parameter to determine in what way to identify the item: if ByPosition is True, TestComplete treats the Item value as the item position; if ByPosition is False, TestComplete treats the Item value as an identifier.

If you use Python or DelphiScript, you should enclose the parameters of the wVisible property in square brackets: wVisible[Item, ByPosition].

See Also

Checking the Toolbar Buttons' State in Desktop Windows Applications
wVisible Property (ToolBar Controls)
wChecked Property (Specific to Win32, MFC ToolBar and MFC MenuBar Controls)
wEllipses Property (ToolBar and MenuBar Controls)
wEnabled Property (Specific to Win32, MFC ToolBar and MFC MenuBar Controls)
wGrayed Property (Specific to Win32, MFC ToolBar and MFC MenuBar Controls)
wButtonPos Property (ToolBar and MenuBar Controls)
wButtonID Property (ToolBar and MenuBar Controls)
wButtonText Property (Specific to Win32, MFC ToolBar and MFC MenuBar Controls)

Highlight search results