Chapter VI of the window and controls
The application window is the main interface with the user interaction. Use it to display system information in response to the user's mouse and keyboard input and so on. In this section we will use the PowerBuilder application template feature to create an application, use this procedure to introduce the concept and operation of the window.
First, we use System template feature to create an application:
NEW FILE menu click menu item SELECT NEW APPLICATION LIBRARY system pop-up dialog box to select an object library, here in the D: DATABASE directory create a new object called the SAMPLE database, then click "Save" button ,
SAVE APPLICATION in the next dialog box similar to the new application object named SAMPLE, and then click the OK button OK
System pop-up dialog box asking if you need to create application templates, where "Yes", then the system started for us to generate a multi-document interface application, APPLICATION drawing board is automatically displayed to help us create a good number of objects (Figure 6 -1). The icon can be seen from the object of these objects are windows and menus, then on to the window where the window object example to introduce the concepts and operations.
PowerBuilder provides six different types of windows, and they have varied, the following instructions were:
The first to introduce the MAIN type of window, its characteristics is not dependent on any other window, can exist independently, an application can have more than one MAIN window, you can when needed in the program with the OPEN function to open any of them. In addition, the window can be placed in the MAIN various controls required. Click POWERBAR WINDOW toolbar button, select the W-GENAPP-SHEET window and click the OK button to determine the operation done, and then drawing board in the WINDOW object in the window right-click pop-up menu select PROPERTIES menu item, the pop-up dialog box Note WINDOW WINDOW TYPE column, you can find W-GENAPP-SHEET window is the MAIN type, in which you can put all kinds of control.
The second type of window is POPUP type, which usually features a script from the other window, open it using OPEN function, this type of window opens automatically open the script window with child windows. POPUP the type of window can be displayed on the outside of the parent window, but can not be covered by the parent window, when the parent window is minimized or closed, it also minimize or close accordingly.
A third type of window is CHILD type, which is characterized by usually from the main window or pop-up window script, using OPEN function to open it, it can move the parent window, but not out of the main window's work area , and when the parent window when moving, CHILD window has moved.
The fourth type of window is RESPONSE type, it is a model window, that is, when this type of window is opened, the input focus switches to this window, the user only in the operation and close this window This window can use the program after the other windows. SAMPLE earlier applications, W-GENAPP-ABOUT and W-GENAPP-TOOLBARS window is RESPONSE types of windows.
Fifth type of window is MDI FRAME type is characterized by the window in this type generally do not put the control, but to this type of window as a container for other types of windows, use this type of window can realize multi-document interface, in containers each window to display a document. In our program, the W-GENAPP-FRAME window is an MDI FRAME types of windows. Click the RUN button on the toolbar POWERBAR run the application, the application is running, click the NEW button on the toolbar, then select the WINDOW menu T99vLE VERTICAL menu item, you can see the main window showing the work area several windows, these windows can be used to display a different document (Figure 6-2)
The sixth type of window is the MDI FRAME W99vH MICROHELP, this type of window and on a basic, like, the only difference with this work area below the window with a status bar, use the status bar displays some operations message. In fact just the window W-GENAPP-FRAME is this type.
convert flac to Mp3
Chrome OS Is Outdated? Look Jolicloud!
X-Cloner DVD to 3GP
On The Sasser Worm Pleaded Guilty To 19-year-old Faces 5 Years To Prison
how to convert avi to wmv
Risk leaving the confused
My favorite Dictionaries Education
Digital Audio Converter
SecondLife MPEG to DVD Converter
Deloitte CEO responded that the first time Kelon matter is a "collusion"
Games Board introduction
Bliss CDA Music APE to M4P Editor
Simple Site Administration
aac to mp3 CONVERTER