B4X Store

ELEVATEUI · B4A · XUI

UiColorPicker

Choose colors in a dedicated picker control rather than a generic dialog.

78 modules 1,780 APIs

Inputs & forms

What it solves

Choose colors in a dedicated picker control rather than a generic dialog.

Animated conceptual demonstration, not an exact Android control screenshot.

14 methods3 Designer1 events

When to use this module

In a data-entry form, connect the chosen value to validation and the action that submits the form.

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

14 audited signatures

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

Prepare the instance before its other methods.

Original catalog note: Inicializa el selector de color.

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

Public API declaration; refer to the library behavior for usage details.

Original catalog note: Verified against supplied 2026-11-28 .b4xlib

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, Colorborder As Int, InitialColor As Int)

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

Original catalog note: Añade el selector de color a un contenedor padre.

Parent As B4XViewl As Intt As Intw As Inth As IntColorborder As IntInitialColor As Int
Public Sub getSelectedColor As Int

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

Original catalog note: Obtiene el color seleccionado en formato ARGB (Int).

Returns: Int

Public Sub getSelectedHSVColor As Object()

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

Original catalog note: Obtiene el color seleccionado en formato HSV (Array de Object).

Returns: Object()

Public Sub setSelectedHSVColor (HSV() As Object)

Update selected hsvcolor at runtime when this setting changes.

Original catalog note: Establece el color seleccionado usando valores HSV.

HSV( As unknown

Returns: Object)

Public Sub setSelectedColor2(i As Int)

Update selected color2 at runtime when this setting changes.

Original catalog note: Establece el color seleccionado usando un valor ARGB (Int). Este método es la clave para que funcione AddToParent.

i As Int
Public Sub ColorToHSV(clr As Int) As Object()

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

Original catalog note: Convierte un color ARGB a HSV.

clr As Int

Returns: Object()

Public Sub setBordersColor(color As Int)

Update borders color at runtime when this setting changes.

Original catalog note: --- PROPIEDADES PÚBLICAS ---

color As Int
Public Sub setBackgroundColor(color As Int)

Update background color at runtime when this setting changes.

color As Int
Public Sub setTextColor(color As Int)

Update text color at runtime when this setting changes.

color As Int
Public Sub getBordersColor As Int

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

Returns: Int

Public Sub getBackgroundColor As Int

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

Returns: Int

Public Sub getTextColor As Int

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

Returns: Int

Designer · 3

#DesignerProperty: Key: BorderColor, DisplayName: Border Color, FieldType: Color, DefaultValue: 0xFFFFFFFF#DesignerProperty: Key: PanelBackgroundColor, DisplayName: Panel Background Color, FieldType: Color, DefaultValue: 0xFFFFFFFF#DesignerProperty: Key: TextAreaTextColor, DisplayName: Text Area Text Color, FieldType: Color, DefaultValue: 0xFF000000

Public events and how to implement them · 1

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.

ColorChanged (Clr As Int)

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

B4A handler signature with Demo prefix

Private Sub Demo_ColorChanged(Clr As Int)
    Log("ColorChanged")
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 B4XView 'ignore
Source: ElevateUI public API catalog; tutorials cross-checked against ElevateUI(6).b4xlib. Visualizations are illustrative; sample code requires B4A compilation.