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

Applies to TestComplete 15.63, last modified on April 23, 2024

Description

The wIsSeparatorButton property specifies whether a control item is a separator.

Declaration

TestObj.wIsSeparatorButton(Item, By Position)

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    
By Position [in]    Optional    Boolean Default value: False   

Applies To

The property is applied to the following objects:

View Mode

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

Parameters

The property has the following parameters:

Item

Specifies either caption of the desired item, or its identifier or position on the control (from 0).

By Position

Specifies whether the Item parameter holds the item’s identifier or position on the control.

Property Value

True, if the item is a separator, else False. If the specified item was not found, the property will also return 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 wlsSeparatorButton property in square brackets: wlsSeparatorButton[Item, ByPosition].

Example

To view an example that demonstrates how to use the wIsSeparatorButton property, see Checking the Toolbar Buttons' Type in Desktop Windows Applications.

See Also

Checking the Toolbar Buttons' Type in Desktop Windows Applications
wIsSeparatorButton Property (ToolBar Controls)
wChecked Property (Specific to Win32, MFC ToolBar and MFC MenuBar Controls)
wIsCheckButton Property (Specific to Win32, MFC ToolBar and MFC MenuBar Controls)
wIsDropDownButton Property (Specific to Win32, MFC ToolBar and MFC MenuBar Controls)
wButtonID Property (ToolBar and MenuBar Controls)
wButtonCount Property (ToolBar and MenuBar Controls)
wButtonPos Property (ToolBar and MenuBar Controls)

Highlight search results