Table of Contents

Interface IToolBarButton

Namespace
HP.LFT.SDK.PowerBuilder
Assembly
HP.LFT.SDK.dll

A single tool bar button in a PowerBuilder tool bar.

public interface IToolBarButton

Properties

HasEllipses

Indicates whether the toolbar button's text is truncated and an ellipsis (...) is displayed.

bool HasEllipses { get; }

Property Value

bool

Index

The 0-based index number of the toolbar button. The index does not include hidden and separator buttons.

int Index { get; }

Property Value

int

IsChecked

Indicates whether the toolbar button is a dual-state (toggle) push button and is currently selected (pushed).

bool IsChecked { get; }

Property Value

bool

IsEnabled

Indicates whether the toolbar button is enabled.

bool IsEnabled { get; }

Property Value

bool

IsHighlighted

Indicates whether the toolbar button is highlighted (surrounded by a dotted line).

bool IsHighlighted { get; }

Property Value

bool

IsHot

Indicates whether the toolbar button is "hot". (Appears highlighted on mouseover.)

bool IsHot { get; }

Property Value

bool

IsIndeterminate

Indicates whether the toolbar button is disabled.

bool IsIndeterminate { get; }

Property Value

bool

IsMarked

Indicates whether the toolbar button is marked. The interpretation of a marked button is application dependent.

bool IsMarked { get; }

Property Value

bool

IsPressed

Indicates whether the toolbar button is currently being clicked.

bool IsPressed { get; }

Property Value

bool

IsSelected

Indicates whether the toolbar button is currently either pressed (currently being clicked) or checked (a dual-state push button that is currently selected).

bool IsSelected { get; }

Property Value

bool

IsWrap

Indicates whether the toolbar button is enabled and followed by a line break.

bool IsWrap { get; }

Property Value

bool

Name

The name of the toolbar button.

string Name { get; }

Property Value

string

Methods

Press(MouseButton)

Presses the specified toolbar button.

void Press(MouseButton button = MouseButton.Left)

Parameters

button MouseButton

Optional: The mouse button used to press on the toolbar button.(default value: left button)

ShowDropdown()

Opens the dropdown menu associated with this toolbar button by clicking the arrow part of the button.

void ShowDropdown()