IToolBarButton Interface
A single tool bar button in a standard Windows tool bar.

C# Syntax

public interface IToolBarButton 
Public Properties
 NameDescription
PropertyHasEllipsesIndicates whether the toolbar button's text is truncated and an ellipsis (...) is displayed.  
PropertyIndexThe 0-based index number of the toolbar button. The index does not include hidden and separator buttons.

Note: Not supported for QMenuBar objects.  

PropertyIsCheckedIndicates whether the toolbar button is a dual-state (toggle) push button and is currently selected (pushed).  
PropertyIsEnabledIndicates whether the toolbar button is enabled.  
PropertyIsHighlightedIndicates whether the toolbar button is highlighted (surrounded by a dotted line).

 

PropertyIsHotIndicates whether the toolbar button is "hot". (Appears highlighted on mouseover.)  
PropertyIsIndeterminateIndicates whether the toolbar button is disabled.  
PropertyIsMarkedIndicates whether the toolbar button is marked. The interpretation of a marked button is application dependent.

Note: Not supported for QMenuBar objects.  

PropertyIsPressedIndicates whether the toolbar button is currently being clicked.  
PropertyIsSelectedIndicates whether the toolbar button is currently either pressed (currently being clicked) or checked (a dual-state push button that is currently selected).  
PropertyIsWrapIndicates whether the toolbar button is enabled and followed by a line break.  
PropertyNameThe name of the toolbar button.  
Top
Public Methods
 NameDescription
MethodPressPresses the specified toolbar button.  
MethodShowDropdownOpens the dropdown menu associated with this toolbar button by clicking the arrow part of the button.  
Top