<<

Contents

Search

>>

 

WINDOWCALL

 

 

Function

 

 

Syntax:

WINDOWCALL(#<Mask Number>,<Exit Macro>[,<Split Handle>])

 

<Mask Number>

= <NUM-EXPRESSION>

<Exit Macro>

= <MACRONAME>

<Split Handle>

= <NUM-EXPRESSION>

 

 

Meaning:

Starts a mask in a window without waiting.

 

WINDOWPOS defines the position of the window.

 

With the mask <Mask Number> the Mask Type Window must have been specified.

 

There is a hierarchic program branch in every program, which is started by the main window. Hierarchic means that the upper window is always active. Lower windows can only be activated by closing the windows above. Mask windows called by CALL #... are hierarchic.

 

With the function WINDOWCALL further parallel program branches can be started. Each Window started by WINDOWCALL creates a new program branch. Each program branch can be activated any time with the mouse or Ctrl/<→|>.

 

The function WINDOWCALL starts the mask <Mask Number> and is terminated immediately.

 

WINDOWCALL returns the identification number (Handle) of the window. With the instruction CLOSE_WINDOWCALL the Window can be closed.

 

All ON <Key> Macros and all ON <Event> Macros are saved when the Window is started and each time the program branch is closed. When the program branch is activated again the last state of the ON <Key> and ON <Event> Macros is restored. 

 

The Macro <Exit Macro> is executed after the window has been closed.

 

If the mask is to be displayed in the split window, <Split Handle> must contain the handle of the split window.

 

Parameter:

Mask Number

Number of mask

Exit Macro

Name of macro

Split Handle

Handle of a split window

 

Sample:

WINDOWPOS(0,0)

HANDLE% = WINDOWCALL(#10,PROG.EXIT.10)

...

CLOSE_WINDOWCALL(HANDLE%)

 

See also:

CALL

CLOSE_WINDOWCALL

WINDOWPOS