Android Example [B4X] AS Settings - ComboBox Property


With this property, the user can quickly select one of several options via a combobox. It use the native combo box for each platform.

1707946094137.png


AS_SettingsComboBoxExample.gif


Example
B4X:
'ComboBox
AS_Settings1.MainPage.AddProperty_ComboBox("Advanced","PropertyName_12","ComboBox Example","",Null,1,Array("Option 1","Option 2","Option 3","Option 4"))

Events
The ValueChanged event is triggered when the user has selected an item.
B4X:
Private Sub AS_Settings1_ValueChanged(Property As AS_Settings_Property, Value As Object)
    'Log("ValueChanged " & Property.PropertyName & ": " & Value)
    
    Select Property.PropertyName
        Case "PropertyName_12"
            Log(Value)
    End Select
    
End Sub
 
Top