ui.Window.move()

This method is used with the variable of the WINDOW data type and moves the window associated with the variable to the new position specified by its arguments:

CALL win_var.Move(8,15)

This method accepts two arguments. Y stands for the line and x stands for the column to which the window will be moved, these are both literal integers or integer variables.

Example program:

MAIN

  DEFINE win ui.Window

OPEN WINDOW w WITH 20 ROWS, 40 COLUMNS attribute (border)

LET win = ui.Window.ForName("w")

MENU

  ON ACTION 'Move to 5,5'

    CALL win.Move(5,5)

  ON ACTION 'Exit'

    EXIT MENU

END MENU

END MAIN

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.