ui.Window methods

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

To manipulate ui.Window objects, you have to:

ui.Window.forName()

binds the window opened with an OPEN WINDOW statement with a ui.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

Example code

MAIN

  DEFINE wo ui.Window

  

  OPEN WINDOW orders_w WITH 20 ROWS, 40 COLUMNS ATTRIBUTE(BORDER)

  LET wo = ui.Window.forName("orders_w")

  MENU "menu"

    COMMAND "Change title"

      CALL wo.setText("New window title")

    COMMAND "Exit"

      EXIT MENU

  END MENU

  CALL wo.Close()

END MAIN

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.