Page 108 - iprime_V2.2_class8
P. 108

Blocks Button









                                                                                                         Backpack
                         Built-in
                         Blocks
                                                                                                         Workspace

                      Components
                         Blocks


                                                                                                         Trash

                  Following are the main parts of the Block Editor window:
                       Built-in Blocks: It contains all the predefined blocks in the application. They are responsible
                     for handling operations like Math, Text, Logic and Control.
                       Component Blocks: It contains relevant blocks for the components we have added in the
                     Design window.
                       Workspace: It arranges all the blocks for coding in the workspace.
                       Trash: It is used for deleting blocks that are not required.
                       Backpack: It stores the copy of all the blocks even when we exit App Inventor.
                  Making Click Event for Button

                  To make click event for button, follow the given steps:
                  Step 1  Click on button Talking_Me.

                  Step 2  Drag and drop when Talking_Me. Click do to workspace.
























                  This is an Event Handler block that will handle what happens when the button on your app is clicked.
                  Program the TextToSpeech Action

                  To program the TextToSpeech action, follow the given steps:
                  Step 1  Click on TextToSpeech1 block.


                 106     iPRIME (Ver. 2.2)–VIII
   103   104   105   106   107   108   109   110   111   112   113