0% found this document useful (0 votes)
36 views3 pages

Task 2 - Adding New Screen and Making The Button (Right!) Work

Uploaded by

Ali Papila
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views3 pages

Task 2 - Adding New Screen and Making The Button (Right!) Work

Uploaded by

Ali Papila
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Task 2 - Adding new screen and making the button work

If you finished the Task 1, your app screen should


look like this

You will now make the Right


button work and make the
screen change

1. Adding new screen

Click on the drop down box and select New screen…

2. On design view click on the Right button and change id to


rightScreen
Task 2 - Adding new screen and making the button work

3. Switch back to startScreen and switch to Code view

4. Adding onEvent to Right button

Algorithm
When rightButton clicked
setScreen to rightScreen

Run and test your app

You should see a blank screen, but you will change this in
the next step.

It should look like this


when you press the Right
button

5. Press reset and switch to


rightScreen from drop down box

6. Add a new label to the


rightScreen
Task 2 - Adding new screen and making the button work

7. Change these properties


Now, both of your
Text - You went right.
Width - 300
buttons should be
Height - 170 working
Text color - white
Background color - orange
Font size - 40
Alignment - center

Task 2 Recap and checklist

New screen (rightScreen) added

onEvent added to Right button


correctly

When the Right button is clicked


screen changes to rightScreen

On rightSecreen, there is a message


saying “You went right”

Text for the message is white and


background is orange

The text is centered and correct size

Challenge

At the moment our app has a bug. Have figured out what it is?

You might also like