Have a EditText called edtSQL with clickable csbuilder text with the eventname "Table":
The edtSQL_Click event will be fired before Table_Click, triggering the keyboard popping up.
I can hide the keyboard, but my Table_Click event will show a dialog so this will be pushed up then go down again. How can I avoid this?
RBS
B4X:
cs.Underline.Bold.Color(SQLColours(10)).Clickable("Table", _
arrSQLWords(i).strWord).Append(arrSQLWords(i).strWord).Pop.Pop.Pop.Pop
B4X:
Sub Table_Click(Tag As Object)
Dim strTable As String
HideKeyboard
strTable = CStr(Tag)
Dim rs As ResumableSub = Dialog.Show(Activity, Array As Object("Count rows", "Show fields", "Cancel"), _
"Info for the table " & strTable, "", "", _
-1, False, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Null, False, arrS)
Wait For (rs) Complete (strResult As String)
Select Case strResult
Case "Count rows"
CountTableRows(strTable, True)
Case "Show fields"
ShowFields(strTable, True)
Case "Cancel"
Return
End Select
End Sub
The edtSQL_Click event will be fired before Table_Click, triggering the keyboard popping up.
I can hide the keyboard, but my Table_Click event will show a dialog so this will be pushed up then go down again. How can I avoid this?
RBS