Android Question [Solved] How to hide "cancel/confirm" buttons in TextItem of the B4XPreferencesDialog?

Erel

Administrator
Staff member
Licensed User
B4X:
Dim sf As Object = p.ShowDialog(d, "OK", "CANCEL")
For i = 0 To p.PrefItems.Size - 1
    Dim pi As B4XPrefItem = p.PrefItems.Get(i)
    p.CustomListView1.AnimationDuration = 0
    If pi.ItemType = p.TYPE_TEXT Then
        Dim pnl As B4XView = p.CustomListView1.GetPanel(i)
        Dim ft As B4XFloatTextField = pnl.GetView(0).Tag
        ft.lblClear.Left = -100dip
        ft.lblV.Left = -100dip
    End If
Next
Wait For (sf) Complete (Result As Int)
 

Mahares

Well Known Member
Licensed User
Could he have just used these 2 lines which do not generate an error either if we are talking about 6 of one and half a dozen of the other:
B4X:
ft.lblClear.Visible=False
ft.lblV.Visible=    False
Instead of:
B4X:
ft.lblClear.Left = -100dip
ft.lblV.Left = -100dip
 
Top