iOS Question Combo box Support

Nitin Joshi

Active Member
Licensed User
Longtime User
which are the supporting functions similar to B4A for B4i?

[CODE lang="b4x" title="B4A ComboBox functions"]cmb1.cmbBox.TextColor=Colors.White
cmb1.cmbBox.DropdownBackgroundColor=Colors.RGB(106,86,84)
cmb1.cmbBox.Add("First Name")
cmb1.cmbBox.Clear[/CODE]
 
"B4XComboBox is based on an ActionSheet in B4i."
Under ios there is no way to change the appearance of the elements in the B4XComboBox
 
Upvote 0
Upvote 0
B4X:
SetComboBoxTextColor(B4XComboBox1.mBtn,xui.Color_white)                        'Change TextColor from Default blue to white

B4X:
Private Sub SetComboBoxTextColor(btn As Button, clr As Int)
    'state: 0 = normal, 1 = pressed, 2 = disabled
    Dim no As NativeObject = btn
    no.RunMethod("setTitleColor:forState:", Array(no.ColorToUIColor(clr), 0))
    no.RunMethod("setTitleColor:forState:", Array(no.ColorToUIColor(clr), 1))
    no.RunMethod("setTitleColor:forState:", Array(no.ColorToUIColor(clr), 2))
End Sub
 
Upvote 0
Back
Top