Page 146 - DCAP408_WEB_PROGRAMMING
P. 146

Windows Programming                                             Kumar Vishal, Lovely Professional University




                    Notes                        Unit 9: Child and Pop Up Windows


                                     CONTENTS
                                     Objectives
                                     Introduction

                                     9.1  Creating a Child Window
                                     9.2  Sending Messages to Child Windows
                                          9.2.1  Child Windows

                                          9.2.2  Relationship to Parent Window
                                          9.2.3  Messages
                                     9.3  Fixed Child Windows
                                     9.4  Pop Up Windows
                                     9.5  Summary

                                     9.6  Keywords
                                     9.7  Review Questions
                                     9.8  Further Readings

                                   Objectives


                                   After studying this unit, you will be able to:
                                      Understand creating a child window
                                      Discuss sending messages to child window
                                      Discuss fixed child windows

                                      Understand pop up windows

                                   Introduction

                                   xWindow helps to maintain child (popup) windows, especially when you need multiple child
                                   windows and each window needs different features. You can then have different sets of links
                                   which will open in their own customized windows.
                                   The window is opened  the first time you call the object’s load()  method. When  you call  the
                                   object’s load() method you pass it a  URL. If the  window is not  open it  is  opened with the
                                   parameters you initially preset when creating the xWindow object and the page at the  URL is
                                   then loaded into the window. If the window is already open then the page at the URL is loaded
                                   into the window. The window is then focused (brought to the top).
                                   xWindow will work in almost any Javascript-enabled browser including NN4. xWindow is part
                                   of the X library.

                                   9.1 Creating a Child Window

                                   How to create a ChildWindow Login Popup for Windows Phone 7?




          140                               LOVELY PROFESSIONAL UNIVERSITY
   141   142   143   144   145   146   147   148   149   150   151