4D v13.4Open window |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
Open window
Open window
Open window opens a new window with the dimensions given by the first four parameters:
If you pass -1 in both right and bottom, you instruct 4D to automatically size the window under the following conditions:
Important: This automatic sizing of the window will occur only if you made a prior call to FORM SET INPUT for the form to be displayed, and if you passed the * optional parameter to FORM SET INPUT.
If you pass an empty string ("") in title, you instruct 4D to use the Window Title set in the Design environment Form Properties window for the form to be displayed. Important: The default form title will be set to the window only if you made a prior call to FORM SET INPUT for the form to be displayed, and if you passed the * optional parameter to FORM SET INPUT.
Note: You can also manage the closing of the window from within the form method of the form displayed in the window when an On Close Box event occurs. For more information, see the command Form event. If more than one window is open for a process, the last window opened is the active (frontmost) window for that process. Only information within the active window can be modified. Any other windows can be viewed. When the user types, the active window will always come to the front, if it is not already there. Forms are displayed inside an open window. Text from the MESSAGE command also appears in the window. The following project method opens a window centered in the main window (Windows) or in the main screen (Macintosh). Note that it can accept two, three, or four parameters: ` OPEN CENTERED WINDOW project method After the project method is written, you can use it this way: OPEN CENTERED WINDOW(400;250;Movable dialog box;"Update Archives") The following example opens a floating window that has a Control-menu box (Windows) or Close Box (Macintosh) method. The window is opened in the upper right hand corner of the application window. Open window(Screen width-149;33;Screen width-4;178;-Palette window;"";"CloseColorPalette") The CloseColorPalette method calls the CANCEL command: CANCEL The following example opens a window whose size and title come from the properties of the form displayed in the window: FORM SET INPUT([Customers];"Add Records";*) Reminder: In order to have Open window automatically use the properties of the form, you must call FORM SET INPUT with the optional * parameter, and the properties of the form must have been set accordingly in the Design environment. This example illustrates the “delay” mechanism for displaying sheet windows under Mac OS X: $myWindow:=Open window(10;10;400;400;Sheet window) |
PROPERTIES
Product: 4D
INDEX HISTORY
Modified: 4D 2004 SEE ALSO
CLOSE WINDOW |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||