Hi!
I have a question:
- how can I get "EventName" for all fields in the ShowDialog used (see: Dim ft As B4XFloatTextField):
I have a question:
- how can I get "EventName" for all fields in the ShowDialog used (see: Dim ft As B4XFloatTextField):
EventName_TextChanged:
Sub EventName_TextChanged (Old As String, New As String)
Private enabled As Boolean = New.IndexOf("serachfor") > -1 'Valid...
If enabled Then
PrefDialog.Dialog.GetButton(xui.DialogResponse_Positive).Enabled = enabled
PrefDialog.Dialog.GetButton(xui.DialogResponse_Positive).TextColor = Colors.Blue
End If
End Sub
...
Dim sf As Object = Prefdlg.ShowDialog(Data, "OK", Maps.L(23,"CANCEL"))
For i = 0 To Prefdlg.PrefItems.Size - 1
Dim pi As B4XPrefItem = Prefdlg.PrefItems.Get(i)
If pi.ItemType = Prefdlg.TYPE_MULTILINETEXT Then
Dim ft As B4XFloatTextField = Prefdlg.CustomListView1.GetPanel(i).GetView(0).Tag
ft.TextField.Font = xui.CreateDefaultBoldFont(14)
ft.TextField.SetTextAlignment("TOP","LEFT")
ft.lblClear.Left = -100dip
ft.lblV.Left = -100dip
End If
Next
Prefdlg.Dialog.GetButton(xui.DialogResponse_Positive).Enabled = False
Prefdlg.Dialog.GetButton(xui.DialogResponse_Positive).TextColor = Colors.LightGray
Wait For (sf) Complete (Result As Int)