Page 99 - modular4.0
P. 99

Chapter Profile
                 Block Editor
                 This is the place where we code the components added in the Design Window and instruct them
                 the actions to be performed by them.

                                                                                             Blocks Button






                                                                                    Backpack
                                   Built-in
                                    Blocks


                                                                     Workspace
                               Components
                                  Blocks

                                                                                       Trash


                 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
                 To making click event for button, follow the given steps:







                                                                                            2   Drag  and  drop  the
                                                                                           when Talking_Me.Click
                                                                                           do block to workspace.
                    1   Click  on
                    the Talking
                    Me button.





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









                                                                                                   App Development   97
   94   95   96   97   98   99   100   101   102   103   104