B4X Store

ELEVATEUI · B4A · XUI

UIColorDialog

Let users choose a color from a dialog instead of hard-coded values.

78 modules 1,780 APIs

Dialogs & notifications

What it solves

Let users choose a color from a dialog instead of hard-coded values.

Animated conceptual demonstration, not an exact Android control screenshot.

35 methods0 Designer2 events

When to use this module

When an operation needs confirmation or a result, process its response in the callback before updating the interface.

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.

Color selection
Existing documentation example dialogs-registry.json Not B4A-compiled

Review required libraries, Designer views and input data before compiling in B4A.

Sub Activity_Create(FirstTime As Boolean)
    Dim dlg As UIColorDialog
    dlg.Initialize(Activity, Me, "BrandColor")
    dlg.setTitle("Color de la aplicación")
    dlg.setDescription("Selecciona un color para el encabezado.")
    dlg.setInitialColor(0xFF6554D9)
    dlg.setCustomColorText("Color personalizado")
    dlg.setSubmitText("Aplicar")
    dlg.setCancelText("Volver")
    dlg.show
End Sub

Private Sub BrandColor_Submit(SelectedColor As Int)
    Log("Color ARGB seleccionado: " & SelectedColor)
    ' Aplica el color al componente de tu diseño.
End Sub

Private Sub BrandColor_Cancel
    Log("Color sin cambios")
End Sub

Public methods reference

35 audited signatures

Public Sub Initialize(act As B4XView, Callback As Object, Eventname As String)

Prepare the instance before its other methods.

Original catalog note: Initializes the dialog. You can add parameters to this method if needed.

act As B4XViewCallback As ObjectEventname As String
Public Sub setColorSkin(newColor As Int)

Update color skin at runtime when this setting changes.

Original catalog note: Sets the color for the dialog skin.

newColor As Int
Public Sub getColorSkin As Int

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

Original catalog note: Gets the color for the dialog skin.

Returns: Int

Public Sub setLogoImage(img As Bitmap)

Update logo image at runtime when this setting changes.

Original catalog note: Sets the logo image for the dialog.

img As Bitmap
Public Sub getLogoImage As Bitmap

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

Original catalog note: Gets the logo image for the dialog.

Returns: Bitmap

Public Sub setCustomColorText(text As String)

Update custom color text at runtime when this setting changes.

Original catalog note: Sets the text for the custom color button.

text As String
Public Sub setCustomColorTitle(text As String)

Update custom color title at runtime when this setting changes.

Original catalog note: Sets the title shown on the custom color page.

text As String
Public Sub setApplyCustomColorText(text As String)

Update apply custom color text at runtime when this setting changes.

Original catalog note: Sets the text for the button that applies the selected custom color.

text As String
Public Sub setAnimateImage(animate As Boolean)

Update animate image at runtime when this setting changes.

Original catalog note: Sets whether to animate the logo image.

animate As Boolean
Public Sub getAnimateImage As Boolean

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

Original catalog note: Gets whether the logo image is animated.

Returns: Boolean

Public Sub setCornerRadius(Radius As Float)

Update corner radius at runtime when this setting changes.

Original catalog note: Sets the corner radius for the dialog.

Radius As Float
Public Sub getCornerRadius As Float

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

Original catalog note: Gets the corner radius for the dialog.

Returns: Float

Public Sub setDialogBackgroundColor(NewColor As Int)

Update dialog background color at runtime when this setting changes.

Original catalog note: Sets the background color of the complete dialog surface or selection panel. Supply an ARGB color (e.g., 0xFF202536).

NewColor As Int
Public Sub setDialogBorderColor(NewColor As Int)

Update dialog border color at runtime when this setting changes.

Original catalog note: Sets the border color for the complete dialog surface. Supply an ARGB color.

NewColor As Int
Public Sub setDialogBorderWidth(Width As Float)

Update dialog border width at runtime when this setting changes.

Original catalog note: Sets the border stroke width for the complete dialog surface; zero hides the border.

Width As Float
Public Sub setSubmitButtonColor(Bcolor As Int)

Update submit button color at runtime when this setting changes.

Original catalog note: Sets the color for the submit button.

Bcolor As Int
Public Sub getSubmitButtonColor As Int

Read the current submit button color value for validation or UI synchronization.

Original catalog note: Gets the color for the submit button.

Returns: Int

Public Sub setCancelButtonColor(Bcolor As Int)

Update cancel button color at runtime when this setting changes.

Original catalog note: Sets the color for the cancel button.

Bcolor As Int
Public Sub getCancelButtonColor As Int

Read the current cancel button color value for validation or UI synchronization.

Original catalog note: Gets the color for the cancel button.

Returns: Int

Public Sub setBubbleDesign(IsBubble As Boolean)

Update bubble design at runtime when this setting changes.

Original catalog note: Sets whether to use the bubble design.

IsBubble As Boolean
Public Sub getBubbleDesign As Boolean

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

Original catalog note: Gets whether the bubble design is enabled.

Returns: Boolean

Public Sub setTop(top As Int)

Update top at runtime when this setting changes.

Original catalog note: Sets the top margin for the dialog.

top As Int
Public Sub setlogo2(icon As Char, IconColor As Int, Font As B4XFont)

Update logo2 at runtime when this setting changes.

Original catalog note: Sets the logo character, color, and font.

icon As CharIconColor As IntFont As B4XFont
Public Sub setTitle(title As String)

Update title at runtime when this setting changes.

Original catalog note: Sets the title of the dialog.

title As String
Public Sub getTitle As String

Read the current title value for validation or UI synchronization.

Original catalog note: Gets the title of the dialog.

Returns: String

Public Sub setDescription(desc As String)

Update description at runtime when this setting changes.

Original catalog note: Sets the description of the dialog.

desc As String
Public Sub getDescription As String

Read the current description value for validation or UI synchronization.

Original catalog note: Gets the description of the dialog.

Returns: String

Public Sub setSubmitText(submitText As String)

Update submit text at runtime when this setting changes.

Original catalog note: Sets the text for the submit button.

submitText As String
Public Sub getSubmitText As String

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

Original catalog note: Gets the text for the submit button.

Returns: String

Public Sub setCancelText(cancelText As String)

Update cancel text at runtime when this setting changes.

Original catalog note: Sets the text for the cancel button.

cancelText As String
Public Sub getCancelText As String

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

Original catalog note: Gets the text for the cancel button.

Returns: String

public Sub setAnimationBubble (animate As Boolean)

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

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

animate As Boolean
Public Sub getAnimateBubble As Boolean

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

Returns: Boolean

Public Sub show

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

Original catalog note: Shows the dialog.

Public Sub setInitialColor(Icolor As Int)

Update initial color at runtime when this setting changes.

Original catalog note: Sets the initial color for the dialog.

Icolor As Int

Designer · 0

No custom Designer properties were found in the audited API.

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.

Submit(color as Int) ' Event triggered when the submit button is clicked.

Receives the user confirmation; validate parameters before saving.

B4A handler signature with Demo prefix

Private Sub Demo_Submit(color as Int) ' Event triggered when the submit button is clicked.
    Log("Submit")
End Sub
Cancel ' Event triggered when the cancel button is clicked.

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

B4A handler signature with Demo prefix

Private Sub Demo_Cancel ' Event triggered when the cancel button is clicked.()
    Log("Cancel ' Event triggered when the cancel button is clicked.")
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.

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