CHAPTER 3 CREATING AN APPLICATION S USER INTERFACE (Web hosting faq)
CHAPTER 3 CREATING AN APPLICATION S USER INTERFACE USING PREBUILT POP-UP WINDOWS At times, all your application needs to do is display a brief message for the user to read or collect a Yes/No type response to a simple question. Rather than creating, and then customizing, a new window to serve this purpose, you can, instead, use either of two REALbasic options for displaying pop-up styled dialog boxes. One of these options is the MsgBox function, which is best suited to displaying informational messages. The MsgBox function is also included in REALbasic to help facilitate the conversion of Visual Basic applications that use a similarly named Visual Basic function. Your other option for creating pop-up styled dialog boxes is the MessageDialog class, which gives you more control over how text is displayed and how dialog buttons look. Information on how to work with the MsgBox function is provided in Chapter 8. Information and examples of how to use the MessageDialog class are also available in Chapter 8. You learn from examples in upcoming chapters how to set up your application to call on and display other windows you may add. Deleting Windows As you work on your applications, you may find you no longer need a particular window anymore. In addition, as you are adding new windows to your applications, you may accidentally add an extra window when you did not mean to. In either of these circumstances, you can delete any unwanted windows either by selecting them in the Project Editor and pressing Delete or by clicking Edit . Delete. Tip You can also delete a window from your application by right-clicking (control-clicking on Macintosh) on the window and selecting Delete from the contextual menu that appears. Encrypting and Decrypting Windows If you plan on sharing or selling the source code for your applications with other REALbasic programmers, you may want to consider encrypting one or more of the windows that make up your application. For example, if you developed a particular piece of code you consider proprietary, you may want to protect it from the view by other programmers, while still sharing the rest of the code that makes up the application. You can achieve this by encrypting the window with which the code to be protected is associated. When you encrypt a window, you do so by supplying a password. Anyone who later attempts to open the window is prompted to supply the password, without which the window and its associated code will not be displayed. To encrypt a window, you must first select it in the Project Editor, and then click Edit . Encrypt. This opens the Encrypt Window dialog, as Figure 3-13 shows. You must supply the required password two times, and then click the Encrypt button.
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.