_mwin.utl Utility - Make Window
Syntax
call "_mwin.utl"{,column,row,columns,rows,type,
shadow,title$,border_attributes$,window_attributes$,
no_display,screen$,newline_character$,column_character$,
do_connect,disable_clear}
Description
The _mwin.utl utility creates screen windows in a manner similar to the PRO/5 'WINDOW' mnemonic. All of the program's parameters are optional. If no parameters are passed to _mwin.utl, it creates an exact duplicate of the current window.
|
Parameter |
Description |
|---|---|
|
column |
Starting column: -1 centers the window horizontally. -100 places the window at the current horizontal cursor position. |
|
row |
Starting row: -1 centers the window vertically. -100 places the window at the current vertical cursor position. |
|
columns |
Number of columns (width) for window. |
|
rows |
Number of rows (height) for window. |
|
type |
0 Window with no box. |
|
-99 No box, do not clear window |
|
|
1 Window surrounded by a box. |
|
|
-1 Same as 1, do not clear window. |
|
|
2 Box open on the top. |
|
|
-2 Same as -2, do not clear window. |
|
|
3 Box open on the bottom. |
|
|
-3 Same as –3, do not clear window. |
|
|
4 Box open on the left. |
|
|
-4 Same as –4, do not clear window. |
|
|
5 Box open on the right. |
|
|
-5 Same as -5, do not clear window. |
|
|
shadow |
0 No shadow under scroll region. |
|
1 Create a shadow under the scroll region. |
|
|
title$ |
Title (optional). Places the title centered in a box by starting with an "@". Include an EUS Toolkit newline character to force a line break. Titles are displayed only for window types 0 and 1. For a window type 0, the first character of the title must be an "@". This parameter is ignored for other window types. |
|
border_attributes$ |
Border Attributes may be any PRO/5 attribute mnemonics, for example: |
|
window_attributes$ |
Window Attributes may be any PRO/5 attribute mnemonics. |
|
no_display |
If this parameter is nonzero, the window is not displayed but is returned in the following string variable. |
|
screen$ |
Printable copy of the window is returned in this parameter if NO_DISPLAY is set to 1. |
|
newline_character$ |
Character to use in place of the current global string table newline character. |
|
column_character$ |
Use this character to separate columns in the title. |
|
do_connect |
If this parameter is nonzero, |
|
disable_clear |
An alternate method of preventing window clearing intended to ease integration of older window/menu management applications. |
Example
|
Users are positioned inside the new window after the call.
This example shows how to create a window, format the screen, and get input:
|