
Change the name of this component from "HorizontalArrangement1" to "ThreeButtons".

The next step is to make them line up horizontally. You should now have three buttons, one below the other. You should also see the three buttons on the mobile device screen. Using meaningful names makes your projects more readable to yourself and others.Ĭonnect to the AI2 Companion using the "Connect" menu. In this project, you're changing the names of the components rather than leaving them as the default names as you did with HelloPurr. Here's how this should look in the Designer, with the button names appearing in the list of project components. Similarly, make two more buttons for blue and green, named "ButtonBlue" and "ButtonGreen", placing them vertically under the red button.button to change its name from "Button1" to "ButtonRed". Click on Button1 in the Components list in the Viewer to highlight it (it might already be highlighted) and use the Rename.Drag a Button component onto the Viewer and change the Button's Text attribute to "Red" and make its BackgroundColor red.There's also a component you don't see: you use a HorizontalArrangement to make the three color buttons line up side by side.That's just a canvas without a background image. This canvas has a BackgroundImage, which is this kitty from the HelloPurr tutorial. Three Buttons for selecting red, blue, or green paint, and another button for clearing the drawing.You'll use these components to make PaintPot: To reiterate, the name and the title of Screen1 are initially the same, but you can change the title if you want.

However, you can change it, as you're doing for PaintPot. The Title starts out being "Screen1", which is what you used in HelloPurr. Title is a property of the Screen component.

This will also be the name of the application if you package it for the phone.

This tutorial has two parts: Part 1 | Part 2
