Sub Button1_Click
Dim rs As Object = p.ShowDialog(Data(0), "Ok", "CANCEL")
GetDateField(p, "Birthday").TextSize = 12
Wait For (rs) Complete (Result As Int)
Log(Result)
End Sub
Private Sub GetDateField(Pref As PreferencesDialog, Key As String) As B4XView
Dim i As Int = Pref.PrefItems.IndexOf(Pref.GetPrefItem(Key))
Return p.CustomListView1.GetPanel(i).GetView(1)
End Sub