Welcome to the Exelis VIS product documentation center! Here you will find reference guides, help documents, and product libraries. Discover the products ENVI, IDL, ENVI LiDAR, and ESE, developed by Exelis VIS.
﻿

### WINDOW

WINDOW

The WINDOW function creates an empty graphics window. The WINDOW function is useful if you want to set up a graphics area, perhaps add some text or polygon annotations, and then later add graphics.

## Brief Example

The following lines create the window shown at the top of this topic.

; Create the window
w = WINDOW(WINDOW_TITLE="My Window", $  DIMENSIONS=[500,300])   ; Set some properties w.BACKGROUND_COLOR = "thistle"   ; Add some annotations p = POLYGON([50,450,450,50],[50,50,8,8],0, /DEVICE) t = TEXT(250, 25, "$\it Global Map$",$
    ALIGNMENT=0.5, /DEVICE)

### UVALUE

Set this property to an IDL variable of any data type.

### WINDOW_TITLE

Set this property to the title of the IDL Graphic window. The title is displayed in the window's title bar. This keyword is ignored if BUFFER is set.

Note: On initial creation, setting the NAME property will also set the WINDOW_TITLE, and vice versa. After creation, the two can be set independently from each other.

## Version History

 8.0 Introduced 8.1 Properties added: KEYBOARD_HANDLER, MOUSE_DOWN_HANDLER, MOUSE_MOTION_HANDLER, MOUSE_UP_HANDLER, MOUSE_WHEEL_HANDLER, SELECTION_CHANGE_HANDLER, UVALUE Methods added: GetSelect, HitTest, Show 8.2 Methods added: CopyWindow, Erase, Refresh, SetCurrent Properties added: RESOLUTION 8.2.1 Properties added: EVENT_HANDLER