Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
MainForm.Show
Dim tf As TextField: tf.Initialize("tf")
tf.Text = "Text1"
Log ("Done")
End Sub
Sub TF_TextChanged (Old As String, New As String)
Log ("Change")
End Sub
Can you please help me about this?
I faced into the same problem and don't know how to solve it.
In my situation I would like to disable a button after sql query finish and enable when any textbox change.
I prepared a test in eclipse as well and it works fine.
I'm trying to describe that I would like to do.
When btnStart clicked I would like to refresh textboxes from database and after it disable the btnSave.
And when any textbox change then I'd like to enable btnSave.
My problem with the order of the events.
Textbox change event raised after btnStart_Action finished.
' Disable save button while there is no change(s)
CallSubDelayed(Me, "DisableButton")
End Sub
Sub DisableButton
btnSave.Enabled = False
Log("end")
End Sub