The following code is from dot net which I want to use in xojo, how do I go about implementing a delegate, so that I can update a textarea on the fly. The textarea is in a dialog box and I run batch process using a method from the dialog.
Private Sub setText()
Try
setPdfText("File " & e.Name & _
" has been created" & vbCrLf)
Catch ex As Exception
Logger.Log(ex.ToString())
End Try
End Sub
Private Delegate Sub setPdfTextDelegate(s As String)
Private Sub setPdfText(ByVal s As String)
Try
tbFW_Info.Focus()
If tbFW_Info.InvokeRequired Then
tbFW_Info.Invoke(New setPdfTextDelegate(AddressOf setPdfText), s)
Else
tbFW_Info.AppendText(s)
End If
Catch ex As Exception
Logger.Log(ex.ToString())
End Try
End Sub