ui.Window.openWithForm()

This method is used with a variable of the WINDOW data type to initialize it and to open a window with the specified form in it:

variable.OpenWithForm("window_ name", form_name, y, x[, into[, attributes]])

where

window_ name

a quoted string or a variable of a character data type standing for a window name

form_name

a quoted string or a variable of a character data type containing the name of the form file

x, y

a row and a column at which the upper-left corner of the window will appear (literal integers or INTEGER variables)

into

(optional) a name of the placeholder to which the window will open (STRING)

attributes

(optional) a quoted string containing standard display attributes

window_name is displayed to the window's title bar unless a form file defines another text for the title bar.

form_name includes only the name of the form – without the file extension but with the relative path, if necessary.

When you specify a form name, be careful with its case.

UNIX is case-sensitive, so it will treat forms which names come in different cases as separate files.

attributes can specify color and intensity of the displayed text, the BORDER attribute and the attributes setting the positions of the reserved lines. There may be more than one attribute in the character string, they should be separated by commas. Here are the attributes you can use:

x+ y and into must be set together:

CALL var.OpenWithForm("My window", test, 2, 3, ph2, "border")

If Lycia finds the specified placeholder in the form, it will open the child window to this placeholder.

If Lycia doesn't find the specified placeholder in the form, the window will be opened according to the x+ y coordinates.

 

If you do not need optional parameters, you simply omit them:

CALL var.OpenWithForm("My window", test, 2, 3)

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.