Reference for the Mosaic class Flat::VertBar

Flat::VertBar
BackColor
BarColor
BarSize
CurrentValue
Divisor
DotPosition
Inverse
MaxValue
MinValue
Outlet
ShowCurrent
TextColor
formatValueString()
outletSlot
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()

Vertical bar widget with a flat design. The widget is used to illustrate a value by using a colored vertical bar.

property color BackColor = Flat::ColorOfBody;

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 color BarColor = Flat::ColorOfTheme;

The property 'BarColor' defines the color of the widgets indicator bar. The property is used to assign a color independent from the current theme color.

property int32 BarSize = Flat::BarSize;

The property 'BarSize' defines the width of the bar in pixel.

property int32 CurrentValue = 50;

The property 'CurrentValue' stores the momentary value of the widget. The value is limited automatically to the range from MinValue to MaxValue.

property int32 Divisor = 1;

The property 'Divisor' stores the ratio for the display value.

property int32 DotPosition = 0;

The property 'DotPosition' stores the index of the digit where the dot is shown. In case that 'DotPosition' is zero, the dot disappears.

property bool Inverse = false;

The property 'Inverse' controls the arrangement and the orientation of the min/max values of the widget.

property int32 MaxValue = 100;

The property 'MaxValue' defines the upper boundary of the widgets value range.

property int32 MinValue = 0;

The property 'MinValue' defines the lower boundary of the widgets value range.

property ^int32 Outlet = null;

The property 'Outlet' provides an interface for the Model-View-Controller (MVC). In the MVC, the widgets (views, controllers) and the application logic (model) are always kept apart. An automatism behind this model ensures, that widgets are notified automatically as soon as the affected model has changed its state. On the other hand, user interactions on a widget cause the affected model to execute the application logic. Usually, a model is a simple Chora object containing several properties and the implementation of onget/onset method.

By assigning a property reference, Outlet establishes a connection between the widget and the model object, the affected property belongs to. After this, the widget is able to read and modify the referred property in response to the user interactions. It is also able to adapt the widget appearance, if the value of the referred property has been modified by another widget or by the application logic itself.

property bool ShowCurrent = true;

The property 'ShowCurrent' controls the visibility of the text items displaying the current value.

property color TextColor = Flat::ColorOfTheme;

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.

method string formatValueString
(
arg int32 aValue
);

Method to format a string based on the given aValue and the current DotPosition and Divisor.

slot outletSlot;

This slot method will receive a signal, if the value of the property assigned to Outlet has been changed by another widget or by the application logic. In response to this notification, the widget will update itself.