Reference for the Mosaic class Flat::IconButton

Flat::IconButton
Caption
Icon
IconColor
IconIndex
ItemColor
ItemColorActive
OnAction
TextColor
enterLeaveSlot
pressReleaseSlot
Core::Group
AlphaBlended
Buffered
Embedded
Enabled
Focus
Opacity
Visible
Add()
AddBehind()
BroadcastEvent()
BroadcastEventAtPosition()
CountViews()
DispatchEvent()
FindNextView()
FindPrevView()
FindSiblingView()
FindViewAtPosition()
FindViewInDirection()
FindViewWithinArea()
GetContentArea()
GetIndexOfView()
GetViewAtIndex()
GlobalPosition()
HasViewState()
Init()
InvalidateArea()
InvalidateViewState()
LocalPosition()
ObtainFocus()
Remove()
Restack()
RestackBack()
RestackBehind()
RestackTop()
UpdateLayout()
UpdateViewState()
Core::RectView
Bounds
Core::View
Layout
Owner
ArrangeView()
ChangeViewState()
CursorHitTest()
Draw()
GetExtent()
GetRoot()
HandleEvent()
MoveView()

Icon button widget with a flat design. The widget is used as a simple push button with an icon and a text item.

property string Caption = "Button";

The property 'Caption' stores the text to display within the item.

property Resources::Bitmap Icon = Flat::FlatDemoIcons;

The property 'Icon' stores the bitmap to show in the left part of the button.

property color IconColor = Flat::ColorOfBackground;

The property 'BackColor' defines the background color of the widget. The property is used to assign a color independent from the current theme color.

property int32 IconIndex = 19;

The property 'IconIndex' stores the frame number of the Icon.

property color ItemColor = Flat::ColorOfTouch;

The property 'ItemColor' defines the color of the widgets touchable member (knob). The property is used to assign a color independent from the current theme color.

property color ItemColorActive = Flat::ColorOfTheme;

The property 'ItemColorActive' defines the color of the widgets touchable member (knob) while it is touched by the user. The property is used to assign a color independent from the current theme color.

property slot OnAction = null;

The property 'OnAction' can refer to a slot method, which will receive a signal as soon the user has pressed the button. Thereupon the method's logic will be executed.

property color TextColor = Flat::ColorOfTouch;

The property 'TextColor' defines the color of the widgets text members. The property is used to assign a color independent from the current theme color.

slot enterLeaveSlot;

This internal slot method is used to receive the corresponding signals form the touch handler.

slot pressReleaseSlot;

This internal slot method is used to receive the corresponding signals form the touch handler.