MSComCtlToolbar

Extends ActiveXObject

Extends SeSSimulatedObject

Behavior Pattern: MSComCtlToobarBehavior

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(nameCaptionIndex, clickType, xOffset, yOffset)

ClickItem

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
Optional, Default: L.
xOffset number X offset to click within object. Default is a center.
Optional.
yOffset number Y offset to click within object. Default is a center.
Optional.

Returns:

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

DoSetCheck(bcheck, nameCaptionIndex)

SetCheck

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.