set_window_area

Declaration

set_window_area (win: WINDOW; left, top, width, height: INTEGER)

Description

Sizes and positions the window win. To leave the window at the same position, pass window_left (win) and window_top (win) for left and top, respectively. To leave the size untouched, pass window_width (win) and window_height (win) for width and height, respectively.

On Windows, the left and top coordinates are relative the main window. On the Mac, they're relative to the desktop.

See Also

window_bottom
window_height
window_left
window_right
window_top
window_width
window and frame functions
Window_Manager

Example

script resize_window is
  -- resize the window without moving it
  set_window_area ('main', window_left ('main'), 
                           window_top ('main'),
                           window_width ('main') + 10
                           window_height ('main') + 10)
end