Designing the app

In our Talking Pi app, we are going to add four main components: TextBox, Button, Label, and TextToSpeech. The TextBox, Button, and Label components are inside the User Interface option. Take the following steps:

  1. You can drag the TextBox, Button, and Label components one by one inside the screen as follows:
  1. After adding these three components, you will notice that they are aligned to the top-left of the screen, which looks a bit odd. To position them horizontally in the center of the screen, select Screen1 from the Components panel and change AlignHorizontal to Center, as shown in the following screenshot:
  1. Next, to ...

Get Hands-On Robotics Programming with C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.