ui.Window methods

 

ui.Window methods are used to manipulate ui.Window objects.

 

To manipulate ui.Window objects, you have to:

 

declare the object with a DEFINE statement:

 

DEFINE window_object ui.Window

 

open a window with an OPEN WINDOW statement and give it a static name:

 

OPEN WINDOW my_window WITH FORM "my form" ATTRIBUTE(BORDER)

 

bind the opened window with the necessary ui.Window object:

 

LET window_object = ui.Window.ForName("my_window")

 

or

 

CURRENT WINDOW IS my_window

LET window_object = ui.Window.GetCurrent()

 

 

ui.Window.forName()

binds the window opened with an OPEN WINDOW statement with a Window object

ui.Window.getCurrent()

binds the current window with a ui.Window object

ui.Window.open()

initializes a ui.Window object and opens a window

ui.Window.createForm()

create an empty form and displays it to the associated window

ui.Window.openWithForm()

initializes a ui.Window object and opens a window with a form in it

ui.Window.setText()

specifies the title of the window

ui.Window.getText()

retrieves the title of the window

ui.Window.setImage()

specifies the icon for the window title bar

ui.Window.getImage()

retrieves the icon for the window title bar

ui.Window.getForm()

allows the user to manipulate the form objects by getting a ui.Form instance that belongs to the current window

ui.Window.clear()

clears a window opened by ui.Window.Open() or by ui.Window.OpenWithForm() methods

ui.Window.move()

moves the window associated with the variable to a new position

ui.Window.raise()

brings the specified window to the top of the window stack, i.e. makes it the current window

ui.Window.close()

closes a window opened by ui.Window.Open() or by ui.Window.OpenWithForm() methods or initialized with a DEFINE statement

ui.Window.displayAt()

displays a text to a specified window location

ui.Window.message()

displays a text to the reserved message line of the specified window

ui.Window.error()

displays a text to the reserved error line of the specified window