B4X Store

ELEVATEUI · B4A · XUI

UIpopup

Display anchored popup content or contextual actions.

78 modules 1,780 APIs

Dialogs & notifications

What it solves

Display anchored popup content or contextual actions.

Animated conceptual demonstration, not an exact Android control screenshot.

40 methods0 Designer1 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.

Animated popup notification
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 notice As UIpopup
    notice.Initialize("Notice", Me)
    notice.setTitle("Sincronización completada")
    notice.setMessage("Los cambios están disponibles.")
    notice.setIconAnimation(notice.ANIM_BOX_CAT)
    notice.setPosition(notice.H_TOP)
    notice.setDuration(4)
    notice.setProgressVisible(True)
    notice.setClose(True)
    notice.setTag("sync")
    notice.Show
End Sub

Private Sub Notice_Click(Tag As Object)
    Log("Se pulsó la notificación: " & Tag)
End Sub

Public methods reference

40 audited signatures

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

Prepare the instance before its other methods.

EventName As StringCallBack As Object
Public Sub setIconAnimation(AnimType As Int)

Update icon animation at runtime when this setting changes.

AnimType As Int
Public Sub Reset

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

Public Sub Show

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

Public Sub setShadow(color As Int)

Update shadow at runtime when this setting changes.

Original catalog note: Shadow effect (approximate using elevation in B4A)

color As Int
Public Sub Hide

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

Public Sub Update

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

Public Sub setBackColor(Color As Int)

Update back color at runtime when this setting changes.

Original catalog note: ============================================================================ Property getters/setters ============================================================================

Color As Int
Public Sub getBackColor As Int

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

Returns: Int

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 getMessageTextColor As Int

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

Returns: Int

Public Sub setAppHeader(Header As Boolean)

Update app header at runtime when this setting changes.

Header As Boolean
Public Sub getAppHeader As Boolean

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

Returns: Boolean

Public Sub View As B4XView

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

Returns: B4XView

Public Sub setMessage(Text As String)

Update message at runtime when this setting changes.

Text As String
Public Sub setMessageTextColor(Color As Int)

Update message text color at runtime when this setting changes.

Color As Int
Public Sub getMessage As String

Read the current message value for validation or UI synchronization.

Returns: String

Public Sub setTitle(Title As String)

Update title at runtime when this setting changes.

Title As String
Public Sub getTitle As String

Read the current title value for validation or UI synchronization.

Returns: String

Public Sub setPosition(Position As Int)

Update position at runtime when this setting changes.

Position As Int
Public Sub setDuration(Seconds As Int)

Update duration at runtime when this setting changes.

Seconds As Int
Public Sub getDuration As Int

Read the current duration value for validation or UI synchronization.

Returns: Int

Public Sub setClose(Close As Boolean)

Update close at runtime when this setting changes.

Close As Boolean
Public Sub getClose As Boolean

Read the current close value for validation or UI synchronization.

Returns: Boolean

Public Sub setTag(Tag As Object)

Update tag at runtime when this setting changes.

Tag As Object
Public Sub getTag As Object

Read the current tag value for validation or UI synchronization.

Returns: Object

Public Sub setProgressVisible(Enabled As Boolean)

Update progress visible at runtime when this setting changes.

Enabled As Boolean
Public Sub setLeftLine(Color As Int)

Update left line at runtime when this setting changes.

Color As Int
Public Sub setCornerRadius(Radius As Int)

Update corner radius at runtime when this setting changes.

Radius As Int
Public Sub setProgressColor(Color As Int)

Update progress color at runtime when this setting changes.

Color As Int
Public Sub setTitleFont(fnt As B4XFont)

Update title font at runtime when this setting changes.

fnt As B4XFont
Public Sub setContentFont(fnt As B4XFont)

Update content font at runtime when this setting changes.

fnt As B4XFont
Public Sub setCloseButtonColor(Color As Int)

Update close button color at runtime when this setting changes.

Color As Int
Public Sub getCloseButtonColor As Int

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

Returns: Int

Public Sub setCloseButtonFont(Font As B4XFont)

Update close button font at runtime when this setting changes.

Font As B4XFont
Public Sub getCloseButtonFont As B4XFont

Read the current close button font value for validation or UI synchronization.

Returns: B4XFont

Public Sub setCloseButtonChar(c As String)

Update close button char at runtime when this setting changes.

c As String
Public Sub getLeftLineEnabled As Boolean

Read the current left line enabled value for validation or UI synchronization.

Returns: Boolean

Public Sub getProgressVisible As Boolean

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

Returns: Boolean

Designer · 0

No custom Designer properties were found in the audited API.

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.

Click (Tag As Object)

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

B4A handler signature with Demo prefix

Private Sub Demo_Click(Tag As Object)
    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 H_TOP As Int = 0Public H_BOTTOM As Int = 1Public Const ANIM_SUCCESS As Int = 1Public Const ANIM_ERROR As Int = 2Public Const ANIM_WARNING As Int = 3Public Const ANIM_INFO As Int = 4Public Const ANIM_CONFETTI As Int = 5Public Const ANIM_CONFUSED As Int = 6Public Const ANIM_NEUTRAL As Int = 7Public Const ANIM_DONE As Int = 8Public Const ANIM_GHOST As Int = 9Public Const ANIM_RAINBOW As Int = 10Public Const ANIM_HEART As Int = 11Public Const ANIM_KIRBY As Int = 12Public Const ANIM_SAD As Int = 13Public Const ANIM_SIGNAL As Int = 14Public Const ANIM_CHART As Int = 15Public Const ANIM_STAR As Int = 16Public Const ANIM_NO_SIGNAL As Int = 17Public Const ANIM_DOWNLOAD As Int = 18Public Const ANIM_LOCK As Int = 19Public Const ANIM_ROCKET As Int = 20Public Const ANIM_SEARCH As Int = 21Public Const ANIM_BELL As Int = 22Public Const ANIM_ANGRY As Int = 23Public Const ANIM_SYNC As Int = 24Public Const ANIM_LOVE_FACE As Int = 25Public Const ANIM_FIRE As Int = 26Public Const ANIM_MAIL As Int = 27Public Const ANIM_MONEY As Int = 28Public Const ANIM_GIFT As Int = 29Public Const ANIM_CAKE As Int = 30Public Const ANIM_BUG As Int = 31Public Const ANIM_CLOUD As Int = 32Public Const ANIM_BATTERY As Int = 33Public Const ANIM_PIN As Int = 34Public Const ANIM_SNOW As Int = 35Public Const ANIM_WINDOWS As Int = 36Public Const ANIM_VIRUS As Int = 37Public Const ANIM_CAT As Int = 38Public Const ANIM_DOG As Int = 39Public Const ANIM_DICE As Int = 40Public Const ANIM_BOX_CAT As Int = 41Public Const ANIM_SUNFLOWER As Int = 42Public Const ANIM_CONFIG As Int = 43Public Const ANIM_FOLDER As Int = 44Public Const ANIM_ELECTRIC_METER As Int = 45Public Const ANIM_BULB As Int = 47
Source: ElevateUI public API catalog; tutorials cross-checked against ElevateUI(6).b4xlib. Visualizations are illustrative; sample code requires B4A compilation.