ICreate.Controls.Bars Send comments on this topic.
SubButton Property
See Also 
ICreate.Controls.Bars Namespace > ButtonBarButton Class : SubButton Property






Gets or sets if the ButtonBarButton has a subordinate button.

Syntax

Visual Basic (Declaration) 
Public Property SubButton As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ButtonBarButton
Dim value As Boolean
 
instance.SubButton = value
 
value = instance.SubButton
C# 
public bool SubButton {get; set;}
Delphi 
public read-write property SubButton: Boolean; 
JScript 
public function get,set SubButton : boolean
Managed Extensions for C++ 
public: __property bool get_SubButton();
public: __property void set_SubButton( 
   bool value
);
C++/CLI 
public:
property bool SubButton {
   bool get();
   void set (bool value);
}

Return Value

A System.Boolean value, this property specifies if the ButtonBarButton has a subordinate button. If true then the ButtonBarButton has a subordinate button; otherwise it is false and the ButtonBarButton does not have a subordinate button. The default value is false.

Remarks

A subordinate button is drawn as a small button on the left of the ButtonBarButton. The SubButtonClick and SubItemSelected events are raised when the sub button is clicked. If the ButtonBarButton has a Menu and the menu contains menu items then a menu indicator is drawn in the middle of the sub button. The Menu is shown when the sub button is clicked.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also