Pustaka Taratsa

Baca teks (EPUB): AppInventor: Tutorial Membuat Tombol dan Bereaksi

1 bagian

Teks ini diambil langsung dari berkas EPUB; tata letak dan gambar tidak disertakan. Untuk tampilan lengkap, silakan merujuk pada dokumen asli.

Daftar isi
  1. AppInventor: Tutorial Membuat Tombol dan Bereaksi
  2. Referensi

AppInventor: Tutorial Membuat Tombol dan Bereaksi

Sumber: https://onnocenter.or.id/wiki/index.php/AppInventor:_Tutorial_Membuat_Tombol_dan_Bereaksi

Sumber: http://www.appinventor.org/content/CourseInABox/Intro/EventNugget

Example 1. How do you turn a button red when the user clicks it? example 2

OK, this is a really silly app but it will get us started. The app appears and there is a gray button. When the user touches (clicks) the button, the button's color changes to red. The click of the button, Button1.Click, is an event, something that can happen to the app. The gold when Button1.Click block is called an event-handler. The blocks inside it are the response to the event. set means to change something, in this case, change the button’s BackgroundColor to red. The blocks, as a whole, specify that when the user clicks the button it should turn red.

Referensi