Public Sub Initialize (Callback As Object, EventName As String)
Prepares the control and its event callback/prefix.
Public Sub DesignerCreateView (Base As Object, Lbl As Label, Props As Map)
Applies Designer properties when B4A creates the view.
Public Sub AddToParent(parent As B4XView, ViewTag As Object, Hinttext As String, Left As Int, Top As Int, WidthView As Int, HeightView As Int, activecolor As Int, backgound As Int, textColor As Int, passmode As Boolean, staticmode As Boolean)
Adds the field programmatically with bounds, colors and initial modes.
Public Sub Base_Resize (Width As Double, Height As Double)
Reflows content when the view is resized.
Public Sub Activate(Active As Boolean)
Activates or deactivates the field visually.
Public Sub setActiveColor(Color As Int)
Sets active color. Pass the value type declared in the signature.
Public Sub setIconPanelBackgroundColor(color As Int)
Sets icon panel background color. Pass the value type declared in the signature.
Public Sub setBackgroundColor(Color As Int)
Sets background color. Pass the value type declared in the signature.
Public Sub setText(texto As String)
Sets text. Pass the value type declared in the signature.
Public Sub setTextColor(TextColor As Int)
Sets text color. Pass the value type declared in the signature.
Public Sub setTextSize(txtsize As Int)
Sets text size. Pass the value type declared in the signature.
Public Sub setHintColor(color As Int)
Sets hint color. Pass the value type declared in the signature.
Public Sub setHintTextColor(color As Int)
Sets hint text color. Pass the value type declared in the signature.
Public Sub getHintTextColor As Int
Reads the current hint text color value.
Public Sub setPasswordStrength(Enabled As Boolean)
Enables the password-strength indicator.
Public Sub getPasswordStrength As Boolean
Reads the current password strength value.
Public Sub setPasswordMode(Enabled As Boolean)
Toggles password masking.
Public Sub getPasswordMode As Boolean
Reads the current password mode value.
Public Sub setShowIcon(Visible As Boolean)
Sets show icon. Pass the value type declared in the signature.
Public Sub getShowIcon As Boolean
Reads the current show icon value.
Public Sub setHintAsTitle(Enabled As Boolean)
Sets hint as title. Pass the value type declared in the signature.
Public Sub getHintAsTitle As Boolean
Reads the current hint as title value.
Public Sub setHintText(Hint_txt As String)
Sets hint text. Pass the value type declared in the signature.
Public Sub setIconDeleteColor(IconeColor As Int)
Sets icon delete color. Pass the value type declared in the signature.
Public Sub setIconColor(Color As Int)
Sets icon color. Pass the value type declared in the signature.
Public Sub getIconColor As Int
Reads the current icon color value.
Public Sub setIconSize(Size As Int)
Sets icon size. Pass the value type declared in the signature.
Public Sub getIconSize As Int
Reads the current icon size value.
Public Sub setCornerRadius(CornerRadii As Int)
Sets corner radius. Pass the value type declared in the signature.
Public Sub setFont(Fonts As B4XFont)
Sets the font of entered text.
Public Sub setIcon(font As B4XFont, Icons As String, color As Int)
Sets icon glyph, font and color.
Public Sub setlogo(filedir As String, filename As String)
Loads a logo from the supplied directory and filename.
Public Sub setRequiredField(Enabled As Boolean)
Shows the required-field indicator.
Public Sub getRequiredField As Boolean
Reads the current required field value.
Public Sub setRequiredFieldColor(color As Int)
Sets required field color. Pass the value type declared in the signature.
Public Sub getRequiredFieldColor As Int
Reads the current required field color value.
Public Sub setHelperText(text As String)
Sets helper text shown below the input.
Public Sub getHelperText As String
Reads the current helper text value.
Public Sub setHelperTextColor(color As Int)
Sets helper text color. Pass the value type declared in the signature.
Public Sub getHelperTextColor As Int
Reads the current helper text color value.
Public Sub setMaxLength(length As Int)
Limits entered characters; 0 means unlimited.
Public Sub getMaxLength As Int
Reads the current max length value.
Public Sub setShowCounter(Enabled As Boolean)
Shows or hides the character counter.
Public Sub getShowCounter As Boolean
Reads the current show counter value.
Public Sub setInputType(typeName As String)
Selects Text, Number, Phone, Email or Decimal keyboard mode.
Public Sub getInputType As String
Reads the current input type value.
Public Sub setReadOnly(readOnlyMode As Boolean)
Prevents editing while retaining the value.
Public Sub getReadOnly As Boolean
Reads the current read only value.
Public Sub setMultiline(Enabled As Boolean)
Toggles multiline input.
Public Sub getMultiline As Boolean
Reads the current multiline value.
Public Sub setErrorColor(color As Int)
Sets error color. Pass the value type declared in the signature.
Public Sub getErrorColor As Int
Reads the current error color value.
Public Sub getNativeEditText As EditText
Returns the native Android EditText for advanced settings.
Public Sub GetNativeTextField As TextField
Gets a platform TextField where supported; check B4A compatibility first.
Public Sub getText As String
Reads the current text value.
Public Sub getActiveColor As Int
Reads the current active color value.
Public Sub getBackgroundColor As Int
Reads the current background color value.
Public Sub getTextColor As Int
Reads the current text color value.
Public Sub getTextSize As Int
Reads the current text size value.
Public Sub getHintColor As Int
Reads the current hint color value.
Public Sub getHintText As String
Reads the current hint text value.
Public Sub getIsError As Boolean
Reads the current is error value.
Public Sub getErrorText As String
Reads the current error text value.
Public Sub setError(ErrorMessage As String)
Shows a validation error message inside the field.
Public Sub clearError
Clears any previous validation error.
Public Sub Wait(Duration As Long)
Introduces an asynchronous delay in milliseconds.
Public Sub RefreshView
Refreshes the input control visuals.
Public Sub SetIconGlow(Radius As Float, GlowColor As Int)
Applies a glow around the icon with given radius and color.