Skip to content

MSComCtlToolbar

Microsoft Windows Toolbar Control

Extends ActiveXObject

Extends SeSSimulatedObject

Behavior Pattern: MSComCtlToolbarBehavior

Property Summary

Property Description Getter Setter
ItemCaption The caption of the button on the toolbar GetItemCaption
ItemCount The number of the items in the toolbar GetItemCount
ItemStyle The style of the button on the toolbar GetItemStyle
ItemValue Returns 'true' if element with nameCaptionIndex has value GetItemValue

Action Summary

Action Description
DoClickItem ClickItem
DoSetCheck SetCheck

Property Detail

ItemCaption

The caption of the button on the toolbar

Getter Parameters:

Name Type Description
nameCaptionIndex number | string Index, name or caption of the item.

Type: string

Accessors: GetItemCaption

ItemCount

The number of the items in the toolbar

Type: number

Accessors: GetItemCount

ItemStyle

The style of the button on the toolbar

Getter Parameters:

Name Type Description
nameCaptionIndex number | string Index, name or caption of the item.

Type: number

Accessors: GetItemStyle

ItemValue

Returns 'true' if element with nameCaptionIndex has value

Getter Parameters:

Name Type Description
nameCaptionIndex number | string Index, name or caption of the item.

Type: boolean

Accessors: GetItemValue

Action Detail

DoClickItem

ClickItem

DoClickItem(nameCaptionIndex, clickType, xOffset, yOffset) 

Parameters:

Name Type Description
nameCaptionIndex string | number index, name or caption of the item to be selected.
clickType string Type of click, can be one of "L" - left click, "LD" - double left click, "R" - right click, "RD" - double right click, "M" - middle click, "MD" - double middle click, "N" - don't click Possible values: "L", "LD", "R", "RD", "M", "MD", "N"
Optional, Default: "L".
xOffset number X offset to click within object. Calculated from the top-left corner. Default is a center. Floating point in the range (-2, 2) means percentage of the width (requires Rapise 6.5+, also requires native events mode in Web tests).
Optional.
yOffset number Y offset to click within object. Calculated from the top-left corner. Default is a center. Floating point in the range (-2, 2) means percentage of the height (requires Rapise 6.5+, also requires native events mode in Web tests).
Optional.

Returns:

boolean: 'true' if success, 'false' otherwise.

DoSetCheck

SetCheck

DoSetCheck(bcheck, nameCaptionIndex) 

Parameters:

Name Type Description
bcheck boolean Check state to set
nameCaptionIndex string | number index, name or caption of the item to be selected.

Returns:

boolean: 'true' if success, 'false' otherwise.