win


window

win
below
foc
parameters
validation
See also

win

By default, the current window is the window name "ANYFLO" whose size and position are those reported at launch (the default graphic screen size in 0.0). Other windows of different sizes and positions can be declared and manipulated by a set of commands (described below).

win("fff")

        Builds window name fff.
Options:
dim(dimx,dimy): dimensions (by default those of the graphic screen).
dim("full"): dimensions
dim("video"): video size (768 par 576).
poi(x,y): position (0,0 default).

win("fff")

       Builds the window name fff and maximum dimensions.
Options:
dim(dimx,dimy) dimensions dimx * dimy.
poi(x,y): top-left corner position (top-left corner of the screen by default).
Note: The anyflo window name is ANYFLO
These windows are resizable and movable with the mouse.

win below

win("FEN")below("DES")

        Creates the subwindow named DES of the window name "FEN".
Options:
dim(dimx,dimy): dimensions dimx * dimy.
poi(x,y): top-left corner position.
Examples: 1)win("ANYFLO")below("DES"); creates a subwindow of the anyflo window. 2)win("DES")below("DES1"); creates a subwindow of this subwindow.
These windows are fixed.

win foc

win foc

        places the focus of the current window.

win("fff")foc

        Returns the window focus fff.
Example:
To launch anyflo win("ANYFLO")foc;, returns NIL
If there is interaction mode, win foc;, win("ANYFLO")foc; returns a no nul integer (focus).

Acces to a window parameters

above win("DES"): returns the name of the window whose window "DES" is a subwindow.
dim win("nnn")=dimx,dimy: Changes the dimensions.
poi win("nnn")=x,y: changes the origin.
edit win("nnn")=x,y: edits the window.
validate win("nnn")=v: validate (v=1) ou inhibits (v=0) the window.
rem win("nnn"): remove the window.
ini win: deletes all the windows and resets window "ANYFLO" by default.

Validation

validate win("fff"); returns the validation v of the window name nom "fff":
       v = 1: activated.
       v = 0: inhibited.
       v = NIL: nonexistent window.
If window "fff" exists:
       validate win("fff")=1; validates it.
       validate win("fff")=0; inhibits it.
       rem win("fff"); deletes it.

See also:


inv pers win
rem win
validate win