Page 28 - Open Soource Technologies 304.indd
P. 28

Event Driven Programming



                          Now click on “Show Selected Value in ActiveX Exe” button to see the item that is selected in
                          ActiveX Exe. Here the number/alphabet selected in ActiveX passed to Standard Exe.





















                             Figure 2.13: ActiveX-13; Control is passed back to the Main (Standard EXE). Below shows the
                                                   item that was selected in ActiveX Exe.




















                                    Figure 2.14:  The selected number is displayed in the Main (Standard EXE).
                          As you can see, in the above example, we have selected “numbers” in the Standard EXE, and later
                          selected “2” in the ActiveX EXE. The number “2” is passed on to the Standard EXE upon request.


                                        This is only a brief example provided to demonstrate the concept. Practically,
                                        the ActiveX EXE/DLL could be quite large, such as a calculator. The calling
                                        program may be a Text Editor.


                          2.1.3 Creating a Data Report
                          Once the Data Environment has been created, we can create a Data Report. We will drag things
                          out of the Data Environment onto a form created for the Data Report, so make sure your Data
                          Environment window is still available.







                          22                     LOVELY PROFESSIONAL UNIVERSITY
   23   24   25   26   27   28   29   30   31   32   33