B4X Store

ELEVATEUI · B4A · XUI

UIImputDialog

Prompt for a value through the dialog class using its published, legacy spelling.

78 modules 1,780 APIs

Dialogs & notifications

What it solves

Prompt for a value through the dialog class using its published, legacy spelling.

Animated conceptual demonstration, not an exact Android control screenshot.

36 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.

Text input
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 UIImputDialog
    dlg.Initialize(Activity, Me, "NewColumn")
    dlg.setTitle("Nueva columna")
    dlg.setIputTitle("Nombre")
    dlg.setHintText("Ej.: Observaciones")
    dlg.setDescription("Indica cómo se llamará la columna.")
    dlg.setSubmitText("Agregar")
    dlg.setCancelText("Cancelar")
    dlg.show
End Sub

Private Sub NewColumn_Submit(Value As String)
    Dim name As String = Value.Trim
    If name.Length = 0 Then
        Log("No se aceptan nombres vacíos")
        Return
    End If
    Log("Nueva columna: " & name)
    ' Aquí agregar la columna a UIEditableTable.
End Sub

Private Sub NewColumn_Cancel
    Log("Entrada cancelada")
End Sub

Public methods reference

36 audited signatures

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

Prepare the instance before its other methods.

Original catalog note: Initialize: Initializes the dialog with the parent activity, callback, and event name. Example: <code>Dialog.Initialize(Activity, Me, "DialogEvent")</code>

act As B4XViewCallback As ObjectEventname As String
public Sub setIputTitle(text As String)

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

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

text As String
Public Sub setColorSkin(newColor As Int)

Update color skin at runtime when this setting changes.

Original catalog note: setColorSkin: Sets the color theme for the dialog. Example: <code>Dialog.setColorSkin(xui.Color_Blue)</code>

newColor As Int
Public Sub getColorSkin As Int

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

Original catalog note: getColorSkin: Returns the current color theme of the dialog.

Returns: Int

Public Sub setLogoImage(img As Bitmap)

Update logo image at runtime when this setting changes.

Original catalog note: setLogoImage: Sets the logo image for the dialog. Example: <code>Dialog.LogoImage = LoadBitmap(File.DirAssets, "logo.png")</code>

img As Bitmap
Public Sub getLogoImage As Bitmap

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

Original catalog note: getLogoImage: Returns the current logo image.

Returns: Bitmap

Public Sub setAnimateImage(animate As Boolean)

Update animate image at runtime when this setting changes.

Original catalog note: setAnimateImage: Enables or disables logo animation. Example: <code>Dialog.AnimateImage = True</code>

animate As Boolean
Public Sub getAnimateImage As Boolean

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

Original catalog note: getAnimateImage: Returns whether logo animation is enabled.

Returns: Boolean

Public Sub setCornerRadius(Radius As Float)

Update corner radius at runtime when this setting changes.

Original catalog note: setCornerRadius: Sets the corner radius for the dialog. Example: <code>Dialog.CornerRadius = 10dip</code>

Radius As 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 getCornerRadius As Float

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

Original catalog note: getCornerRadius: Returns the current corner radius.

Returns: Float

Public Sub setSubmitButtonColor(Bcolor As Int)

Update submit button color at runtime when this setting changes.

Original catalog note: setSubmitButtonColor: Sets the color for the submit button. Example: <code>Dialog.SubmitButtonColor = xui.Color_Green</code>

Bcolor As Int
Public Sub getSubmitButtonColor As Int

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

Original catalog note: getSubmitButtonColor: Returns the current submit button color.

Returns: Int

Public Sub setCancelButtonColor(Bcolor As Int)

Update cancel button color at runtime when this setting changes.

Original catalog note: setCancelButtonColor: Sets the color for the cancel button. Example: <code>Dialog.CancelButtonColor = xui.Color_Red</code>

Bcolor As Int
Public Sub getCancelButtonColor As Int

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

Original catalog note: getCancelButtonColor: Returns the current cancel button color.

Returns: Int

Public Sub setBubbleDesign(IsBubble As Boolean)

Update bubble design at runtime when this setting changes.

Original catalog note: setBubbleDesign: Enables or disables the bubble design. Example: <code>Dialog.BubbleDesign = True</code>

IsBubble As Boolean
Public Sub getBubbleDesign As Boolean

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

Original catalog note: getBubbleDesign: Returns 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: setTop: Sets the top margin for the dialog. Example: <code>Dialog.Top = 20%y</code>

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: setlogo2: Sets the logo using a character and font. Example: <code>Dialog.setlogo2(Chr(0xF015), xui.Color_Black, xui.CreateDefaultBoldFont(24))</code>

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

Update title at runtime when this setting changes.

Original catalog note: setTitle: Sets the title of the dialog. Example: <code>Dialog.Title = "Welcome"</code>

title As String
Public Sub getTitle As String

Read the current title value for validation or UI synchronization.

Original catalog note: getTitle: Returns the current title of the dialog.

Returns: String

Public Sub setDescription(desc As String)

Update description at runtime when this setting changes.

Original catalog note: setDescription: Sets the description text of the dialog. Example: <code>Dialog.Description = "Please enter your details below."</code>

desc As String
Public Sub getDescription As String

Read the current description value for validation or UI synchronization.

Original catalog note: getDescription: Returns the current description text.

Returns: String

Public Sub setSubmitText(submitText As String)

Update submit text at runtime when this setting changes.

Original catalog note: setSubmitText: Sets the text for the submit button. Example: <code>Dialog.SubmitText = "OK"</code>

submitText As String
Public Sub getSubmitText As String

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

Original catalog note: getSubmitText: Returns the current submit button text.

Returns: String

Public Sub setCancelText(cancelText As String)

Update cancel text at runtime when this setting changes.

Original catalog note: setCancelText: Sets the text for the cancel button. Example: <code>Dialog.CancelText = "Close"</code>

cancelText As String
Public Sub getCancelText As String

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

Original catalog note: getCancelText: Returns the current cancel button text.

Returns: String

public Sub setAnimateBubble(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.

Original catalog note: getAnimateBubble: Returns whether bubble animation is enabled.

Returns: Boolean

Public Sub show

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

Original catalog note: show: Displays the dialog with all the configured properties. Example: <code>Dialog.show</code>

public Sub ImputTextLogo(icon As Char, font As B4XFont, IconColor As Int)

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

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

icon As Charfont As B4XFontIconColor As Int
public Sub ImputTextImage(Dir As String, ImageName As String)

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

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

Dir As StringImageName As String
Public Sub setHintText(hint As String)

Update hint text at runtime when this setting changes.

Original catalog note: setHintText: Sets the hint text for the input field. Example: <code>Dialog.HintText = "Enter your name"</code>

hint As String
Public Sub getHintText As String

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

Original catalog note: getHintText: Returns the current hint text for the input field.

Returns: String

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(text as string) ' 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(text as string) ' Triggered when the submit button is clicked.
    Log("Submit")
End Sub
Cancel ' 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 ' Triggered when the cancel button is clicked.()
    Log("Cancel ' 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.