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

asales

Expert
Licensed User
Longtime User
How I can hide this buttons?

textitem2.jpg


Thanks in advance for any tip.
 

Erel

B4X founder
Staff member
Licensed User
Longtime 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)
 
Upvote 0

Mahares

Expert
Licensed User
Longtime 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
 
Upvote 0

NikB4x

Member
Licensed User
Longtime 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)

Hi All,
this works perfect with B4A but not in B4i. Someone have an idea to make the same in B4i?
Thanks!
 
Upvote 0
Top