B4X Store

ELEVATEUI · B4A · XUI

UIGaugeProgress

Show score or state as a gauge-oriented percentage indicator.

78 modules 1,780 APIs

Progress & measurement

What it solves

Show score or state as a gauge-oriented percentage indicator.

Animated conceptual demonstration, not an exact Android control screenshot.

26 methods10 Designer2 events

When to use this module

During a long operation, connect this indicator to real progress updates rather than leaving a decorative percentage.

Before integrating, examine its methods, events and Designer options.

B4A integration examples

Tutorials are based on existing project examples or audited APIs. Check each example’s prerequisites; B4A compilation is not claimed.

Practical tutorial awaiting verification

The public API, events and properties remain available. An isolated initialization is not presented as a full example; a tutorial will be added after a functional sequence is documented.

Public methods reference

26 audited signatures

Public Sub Initialize (Callback As Object, EventName As String)

Prepare the instance before its other methods.

Callback As ObjectEventName As String
Public Sub DesignerCreateView (Base As Object, Lbl As Label, Props As Map)

Invoked automatically by the B4A Visual Designer; do not call manually.

Base As ObjectLbl As LabelProps As Map
Public Sub AddToParent(Parent As B4XView, l As Int, t As Int, w As Int, h As Int, ColorIndicator As Int)

Add this view to a parent container using the supplied bounds and options.

Parent As B4XViewl As Intt As Intw As Inth As IntColorIndicator As Int
Public Sub setCurrentValue (v As Float)

Update current value at runtime when this setting changes.

v As Float
Public Sub getCurrentValue As Float

Read the current current value value for validation or UI synchronization.

Returns: Float

Public Sub SaveAsPNG(Dir As String, FileName As String) As Boolean

Use SaveAsPNG for its named operation; follow its exact signature.

Dir As StringFileName As String

Returns: Boolean

Public Sub setWidthStroke(Width As Int)

Update width stroke at runtime when this setting changes.

Original catalog note: Establecer el ancho del trazo

Width As Int
Public Sub getWidthStroke As Int

Read the current width stroke value for validation or UI synchronization.

Returns: Int

Public Sub setValueMin(Value As Float)

Update value min at runtime when this setting changes.

Original catalog note: Establecer el valor mínimo

Value As Float
Public Sub getValueMin As Float

Read the current value min value for validation or UI synchronization.

Returns: Float

Public Sub setValueMax(Value As Float)

Update value max at runtime when this setting changes.

Original catalog note: Establecer el valor máximo

Value As Float
Public Sub getValueMax As Float

Read the current value max value for validation or UI synchronization.

Returns: Float

Public Sub setLengthIndicator(Length As Int)

Update length indicator at runtime when this setting changes.

Original catalog note: Establecer la longitud del indicador

Length As Int
Public Sub getLengthIndicator As Int

Read the current length indicator value for validation or UI synchronization.

Returns: Int

Public Sub setColorIndicator(Color As Int)

Update color indicator at runtime when this setting changes.

Original catalog note: Establecer el color del indicador

Color As Int
Public Sub getColorIndicator As Int

Read the current color indicator value for validation or UI synchronization.

Returns: Int

Public Sub setAnimationDuration(Duration As Int)

Update animation duration at runtime when this setting changes.

Original catalog note: Establecer la duración de la animación

Duration As Int
Public Sub getAnimationDuration As Int

Read the current animation duration value for validation or UI synchronization.

Returns: Int

Public Sub setTypeGauge(TypeGauge As String)

Update type gauge at runtime when this setting changes.

Original catalog note: Establecer el tipo de gauge

TypeGauge As String
Public Sub getGaugeType As String

Read the current gauge type value for validation or UI synchronization.

Returns: String

Public Sub setTitle(Text As String)

Update title at runtime when this setting changes.

Original catalog note: Métodos públicos para gestionar el título, color y tamaño de fuente

Text As String
Public Sub getTitle As String

Read the current title value for validation or UI synchronization.

Returns: String

Public Sub setTitleColor(Color As Int)

Update title color at runtime when this setting changes.

Color As Int
Public Sub getTitleColor As Int

Read the current title color value for validation or UI synchronization.

Returns: Int

Public Sub setTitleFontSize(Size As Int)

Update title font size at runtime when this setting changes.

Size As Int
Public Sub getTitleFontSize As Int

Read the current title font size value for validation or UI synchronization.

Returns: Int

Designer · 10

#DesignerProperty: Key: MinValue, DisplayName: Min Value, FieldType: Float, DefaultValue: 0#DesignerProperty: Key: MaxValue, DisplayName: Max Value, FieldType: Float, DefaultValue: 100#DesignerProperty: Key: IndicatorLength, DisplayName: Indicator Length, FieldType: Int, DefaultValue: 20#DesignerProperty: Key: IndicatorColor, DisplayName: Indicator Color, FieldType: Color, DefaultValue: 0xFFFF5555#DesignerProperty: Key: StrokeWidth, DisplayName: Stroke Width, FieldType: Int, DefaultValue: 10#DesignerProperty: Key: Duration, DisplayName: Duration From 0 To 100, FieldType: Int, DefaultValue: 3000, Description: Milliseconds#DesignerProperty: Key: GaugeType, DisplayName: Gauge Type, FieldType: String, DefaultValue: Half Circle, List:Half Circle|Full Circle#DesignerProperty: Key: Title, DisplayName: Title, FieldType: String, DefaultValue: Gauge#DesignerProperty: Key: TitleColor, DisplayName: Title Color, FieldType: Color, DefaultValue: 0xFF000000#DesignerProperty: Key: TitleFontSize, DisplayName: Title Font Size, FieldType: Int, DefaultValue: 16, Description: Size in dip

Public events and how to implement them · 2

Initialize with Me and the event prefix Demo, then add the following handler to your B4A module. Names and arguments come from the library declaration.

ValueChanged (NewValue As Float)

Raised when a selection or value changes; use it to update dependent data.

B4A handler signature with Demo prefix

Private Sub Demo_ValueChanged(NewValue As Float)
    Log("ValueChanged")
End Sub
Click

Raised when the user taps the control; use it to trigger a real action.

B4A handler signature with Demo prefix

Private Sub Demo_Click()
    Log("Click")
End Sub

For code-created controls use Initialize(Me, "Demo") when that signature exists; for Designer controls set the event name there. Replace Demo with the actual prefix.

Public fields, constants and types

Public mBase As B4XViewPublic Tag As Object
Source: ElevateUI public API catalog; tutorials cross-checked against ElevateUI(6).b4xlib. Visualizations are illustrative; sample code requires B4A compilation.