version 6.0 (Modified)
Open external window (left; top; right; bottom; type; title; plugInArea) Number
Parameter | Type | Description | |
left | Number | Global left coordinate of window contents area | |
top | Number | Global top coordinate of window contents area | |
right | Number | Global right coordinate of window contents area | |
bottom | Number | Global bottom coordinate of window contents area | |
type | Number | Window type | |
title | String | Title of window | |
plugInArea | String | External area command | |
Function result | Number | Reference number for window and external area |
Description
Open external window opens a new window and displays the external area supported by the command plugInArea provided by a 4D plug-in. The code passed in plugInArea is generally in the form "_PluginName", for example: _4D Write, _4D View or _4D Draw.
Open external window returns a Long Integer value that can be used both as a window reference number (that can be used with other Windows theme commands) and as a reference to the external area displayed in the window (that can be used with other routines provided by the 4D plug-in).
The first six arguments are the same as those of the the Open window command. However, none of the parameters are optional.
Open external window creates modeless windows. The command does not wait for user input, so you can have several active windows open at once. You can click between each window and edit the one in front. If the window type has a title bar, a Control-menu box (Windows) or a Close Box (Macintosh) will be added to enable the user to close the window.
Examples
The following example opens an external window and displays the 4D Write external area:
wrWind:=Open external window (50; 50; 350; 450; 8; "Letter Writing"; "_4D WRITE")
The following example closes the external window opened in the previous example:
CLOSE WINDOW (wrWind)
See Also