- Create a new mobile app by navigating to File | New | Multi-Device Application Delphi.
- Select the Header/Footer template and click on OK.
- Drop the following components on the main form:
- TEdit (edtPhoneNumber)
- TButton (btnCall)
- TListBox (lbCalls)
- TListBox (lbInfo)
- Arrange the components as shown in the following screenshot:
Figure 8.21: The form with all the controls arranged
- Put in some labels to explain what the list boxes will contain, as shown in the preceding screenshot.
- Now, create the FormCreate event handler and fill it in with this code:
procedure TMainForm.FormCreate(Sender: TObject);begin lbInfo.Clear; if ...