Public Sub Initialize (Callback As Object, EventName As String)
Prepare the instance before its other methods.
Original catalog note: Inicializa el selector de color.
ELEVATEUI · B4A · XUI
Choose colors in a dedicated picker control rather than a generic dialog.
Inputs & forms
Choose colors in a dedicated picker control rather than a generic dialog.
Animated conceptual demonstration, not an exact Android control screenshot.
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.
Tutorials are based on existing project examples or audited APIs. Check each example’s prerequisites; B4A compilation is not claimed.
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.
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.
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
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.
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.
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.
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.
Returns: Object()
Public Sub setBordersColor(color As Int)
Update borders color at runtime when this setting changes.
Original catalog note: --- PROPIEDADES PÚBLICAS ---
Public Sub setBackgroundColor(color As Int)
Update background color at runtime when this setting changes.
Public Sub setTextColor(color As Int)
Update text color at runtime when this setting changes.
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
#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: 0xFF000000Initialize with Me and the event prefix Demo, then add the following handler to your B4A module. Names and arguments come from the library declaration.
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 mBase As B4XView 'ignore