Sender is included. As an example you can see the
CurrencyConverter example.
AddEvent and Control are not really required in Basic4android.
In Basic4ppc AddEvent was used to set the event sub to a sub other than the default sub which is derived from the control name.
In Basic4android you can set the event name during initialization and achieve the same result.
About Control keyword. In Basic4ppc each control had a unique and permanent name. The name concept is much weaker in Basic4android.
The reason is that objects are now "
first class citizens". Check this code for example:
Sub ButtonCreator (Text As String) As Button
Dim b as Button
b.Initialize("")
b.Text = Text
Return b
End Sub
...
For i = 1 to 10
Activity.AddView(ButtonCreator("text" & i), 10, 10, 20, 20)
Next
'Or
Dim button as Button
button = ButtonCreator("sefew")
'now work with this button
You can even add your buttons to a List or Map (Hashtable) and then do something like:
For i = 0 to List.Size - 1
Dim b as Button
b = List.Get(i)
b.Color = Colors.Red
Next