| Visual Basic (Declaration) | |
|---|---|
Public Class ButtonBar Inherits Bar Implements IMouseEventProcessor | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public class ButtonBar : Bar, IMouseEventProcessor | |
| Delphi | |
|---|---|
public class ButtonBar = class(Bar, IMouseEventProcessor) | |
| JScript | |
|---|---|
public class ButtonBar extends Bar implements IMouseEventProcessor | |
| Managed Extensions for C++ | |
|---|---|
public __gc class ButtonBar : public Bar, IMouseEventProcessor | |
| C++/CLI | |
|---|---|
public ref class ButtonBar : public Bar, IMouseEventProcessor | |
| C# | Copy Code |
|---|---|
using System; | |
| Visual Basic | Copy Code |
|---|---|
Imports ICreate.Controls.Bars | |
A ButtonBar is a bar which can contain ButtonBarButton and ButtonBarSeparator components. These components are stored in the ButtonBar Items collection. The ButtonBar can be drawn either vertically or horizontally. The ButtonBarPosition property determines whether the bar is vertical or horizontal. This property also determines the location at which the Menu associated with a ButtonBarButton is shown.
The appearance of the ButtonBar is set using the Style property. The Animate property determines how the appearance of the ButtonBarButton items change as their state changes. If Animate is true then the colour of the ButtonBarButton components fade from one value to the other as the state changes and the ButtonBarButton Image expands when the mouse cursor is over the ButtonBarButton. The Image contracts when the mouse cursor moves off the ButtonBarButton. If Animate is false then the colour changes are abrupt and the Image size does not change.
The ItemHot event is raised when the mouse cursor moves over a ButtonBarButton. The ButtonBarButton colour changes from ButtonBackColor to HotBackColor. If the ButtonBarButton has a sub button then the ActiveBackColor and HotBackColor properties determine the background color of the button. If the main part of the button contains the mouse cursor then its background colour is HotBackColor and the sub button's background colour is ActiveBackColor. If the sub button contains the mouse cursor then its background colour is HotBackColor and the main button's background colour is ActiveBackColor. Similarly for the colour of the ButtonBarButton Text.
The ItemCold event is raised when the mouse cursor moves off a ButtonBarButton.
The ItemSelected event is raised when a ButtonBarButton is left clicked, or if a ButtonBarButton has input focus and the enter key or space bar pressed. The SubItemSelected event is raised when the sub button of ButtonBarButton is left clicked, or if the sub button has input focus and the enter key or space bar pressed.
ICreate.Controls.Bars.Bar
ICreate.Controls.Bars.ButtonBar
Requirements
Namespace: ICreate.Controls.Bars
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: ICreate.Controls.Bars (in ICreate.Controls.Bars.dll)


~203.gif)