Page 120 - Touchpad_Plus_V3.2_Class 8
P. 120

Block Editor

                  This is the place where we code the components added in the Design Window and instruct
                  them about the actions to be performed by them. We can open it by clicking on the Blocks
                  button at the top of the window.





                                                                                                              Blocks
                                                                                                              Button
                                                                                        Backpack
                    Built-in Blocks



                                                                       Workspace
                      Components
                         Blocks





                                                                                             Trash


                                                            Block Editor window

                  Different components of Bock Editor window are as follows:

                      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
                     Designer window.

                      Workspace: All the blocks for coding are arranged 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. It is used to
                     copy and paste blocks to different screens and projects.

                  Making Click Event for Button

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

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










               118      Plus (Ver. 3.2)-VIII
   115   116   117   118   119   120   121   122   123   124   125