Difference between revisions of "MOVE WINDOW"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
=MOVE WINDOW=
 
 
 
 
==Class==
 
==Class==
 
Screen Windows
 
Screen Windows
Line 15: Line 12:
  
 
==See Also==
 
==See Also==
[[RESIZE WINDOW]], [[WCOLS()]],[[WROWS()]]
+
[[RESIZE WINDOW]], [[WCOLS()]], [[WROWS()]]
  
  
Line 29: Line 26:
 
<code lang="recital">
 
<code lang="recital">
 
procedure move_up
 
procedure move_up
move window browse by -1,0
+
  move window browse by -1,0
 
return
 
return
 
procedure move_down
 
procedure move_down
move window browse by 1,0
+
  move window browse by 1,0
 
return
 
return
 
procedure move_left
 
procedure move_left
move window browse by 0,-1
+
  move window browse by 0,-1
 
return
 
return
 
procedure move_right
 
procedure move_right
move window browse by 0,1
+
  move window browse by 0,1
 
return
 
return
  
Line 53: Line 50:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Screen Windows]]
 +
[[Category:Screen Windows Commands]]

Revision as of 15:26, 1 June 2009

Class

Screen Windows


Purpose

Move a pre-defined window to a new position


Syntax

MOVE WINDOW <window-name> TO <row, col>| BY <expN1, expN2> | CENTER | SCREEN


See Also

RESIZE WINDOW, WCOLS(), WROWS()


Description

The MOVE WINDOW command is used to move a window to a new screen position. A window is an area of the screen designated for output and input. Windows are defined with the DEFINE WINDOW command, and are displayed to the screen with the ACTIVATE WINDOW or SHOW WINDOW commands. There is no limit to the number of defined windows. The <window-name> is the name of the window as defined in the DEFINE WINDOW command. A window definition must include the FLOAT keyword for the window to be moveable.

Windows can be moved using the TO <row, col> clause, using the BY <expN1, expN2> clause or centered using the CENTER keyword. The TO clause moves the window so that the upper left corner is positioned at the specified row and column coordinates. The BY clause moves the upper right corner of the window vertically by the number of rows specified in <expN1>, and horizontally by the number of columns specified in <expN2>. The CENTER keyword centers the window in the screen.

The SCREEN keyword is included for language compatibility only.


Example

procedure move_up
  move window browse by -1,0
return
procedure move_down
  move window browse by 1,0
return
procedure move_left
  move window browse by 0,-1
return
procedure move_right
  move window browse by 0,1
return
 
set procedure to movewin
set key -1 to move_up
set key -2 to move_down
set key -3 to move_right
set key -4 to move_left


Products

Recital Mirage Server, Recital Terminal Developer