Page 121 - TechPluse_C8_Flipbook
P. 121

Blocks Button











                                                                                          Backpack
                       Built-in Blocks



                                                                          Workspace


                       Components                                                              Trash
                          Blocks


                 Following are the main parts of the Block Editor:
                 ✶  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

                 Step 1  Click on button Talking_Me.
                 Step 2  Drag and drop When Talking_Me.Click do block, and drag and drop it to workspace.


























                 This is an Event Handler block that will handle what happens when the button on your app is

                 clicked.




                                                                                             App Development         119
   116   117   118   119   120   121   122   123   124   125   126