IToolBarButton Interface
A single tool bar button in a PowerBuilder tool bar.

C# Syntax

public interface IToolBarButton 
Public Properties
 NameDescription
PropertyHasEllipses

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

C# Syntax

bool HasEllipses {get;}
PropertyIndex

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

C# Syntax

int Index {get;}
PropertyIsChecked

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

C# Syntax

bool IsChecked {get;}
PropertyIsEnabled

Indicates whether the toolbar button is enabled.  

C# Syntax

bool IsEnabled {get;}
PropertyIsHighlighted

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

C# Syntax

bool IsHighlighted {get;}
PropertyIsHot

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

C# Syntax

bool IsHot {get;}
PropertyIsIndeterminate

Indicates whether the toolbar button is disabled.  

C# Syntax

bool IsIndeterminate {get;}
PropertyIsMarkedIndicates whether the toolbar button is marked. The interpretation of a marked button is application dependent.

C# Syntax

bool IsMarked {get;}
PropertyIsPressed

Indicates whether the toolbar button is currently being clicked.  

C# Syntax

bool IsPressed {get;}
PropertyIsSelected

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

C# Syntax

bool IsSelected {get;}
PropertyIsWrap

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

C# Syntax

bool IsWrap {get;}
PropertyName

The name of the toolbar button.  

C# Syntax

string Name {get;}
Top
Public Methods
 NameDescription
MethodPress

Presses the specified toolbar button.  

C# Syntax

void Press( 
   MouseButton button
)

Parameters

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

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

C# Syntax

void ShowDropdown()
Top