Output in AppLabgorskicompsci.ca/ICS2O/Unit1/ppt5_OutputinAppLab.pdfThe Output Blocks Changes the...

Preview:

Citation preview

Output in AppLabSheet 1.5

Output Code Makes the

Output Device Do Something

We Change the Screen Output

Images Change

Text Changes

We Can Also Play Sounds

Meow!!!

The Output Blocks

Changes the text.

Changes the image.

Plays a sound.

Changes the screen.

How many

widgets?

How many

widgets?

7

How many

widgets?

7

How many types of widgets?

How many

widgets?

7

How many types of widgets?

3

How do you know how

many onEventsyou need?

How do you know how

many onEventsyou need?

Count the buttons!

You need one onEventfor each button.

What are the ids of

the buttons?

What are the ids of

the buttons?

Text id?

What are the ids of

the buttons?

Text id?

Picture id?

What are the ids of

the buttons?

Text id?

Picture id?

Which widgets need

ids?

Which widgets need

ids?

All of the buttons

Any images or code that change.

Why?

Which widgets need

ids?

All of the buttons

Any images or code that change.

Why?

It makes the code easier to

read.

Which widgets need

ids?

All of the buttons

Any images or code that change.

Why?

It makes the code easier to

read.

Recommended