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
Index
The 0-based index number of the toolbar button. The index does not include hidden and separator buttons.
int Index { get; }
Property Value
IsChecked
Indicates whether the toolbar button is a dual-state (toggle) push button and is currently selected (pushed).
bool IsChecked { get; }
Property Value
IsEnabled
Indicates whether the toolbar button is enabled.
bool IsEnabled { get; }
Property Value
IsHighlighted
Indicates whether the toolbar button is highlighted (surrounded by a dotted line).
bool IsHighlighted { get; }
Property Value
IsHot
Indicates whether the toolbar button is "hot". (Appears highlighted on mouseover.)
bool IsHot { get; }
Property Value
IsIndeterminate
Indicates whether the toolbar button is disabled.
bool IsIndeterminate { get; }
Property Value
IsMarked
Indicates whether the toolbar button is marked. The interpretation of a marked button is application dependent.
bool IsMarked { get; }
Property Value
IsPressed
Indicates whether the toolbar button is currently being clicked.
bool IsPressed { get; }
Property Value
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
IsWrap
Indicates whether the toolbar button is enabled and followed by a line break.
bool IsWrap { get; }
Property Value
Name
The name of the toolbar button.
string Name { get; }
Property Value
Methods
Press(MouseButton)
Presses the specified toolbar button.
void Press(MouseButton button = MouseButton.Left)
Parameters
buttonMouseButtonOptional: 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()