Select()

Select a new current device, window or picture

SELECT item=Gobject Sets this to be the current object

example:

	# Select an old window to draw in
	>> Select win(picnum=3,winnum=4)
	>> keep_dev = Select(dev(3))
	>> draw/text 0.2 0.3 "Fudge this data"
	# back to previous device & current window
	>> select keep_dev
	>> select win(0,0)

Note: Drawing is always to the current window.

Select

The Open GENIE graphics system always maintains a record of a current device, picture and window. This is done so that drawing commands can all occur without having to specify where to draw. Normally Open GENIE looks after the setting of these defaults in an intuitive way but the Select() command makes it possible to change the currently selected objects.

The most likely use for the Select() command is when programming a complex system involving several windows, pictures and open devices. It is also the only way to go back to draw in a window which was created earlier on and which has been superceded by subsequent window creating commands. To specify which objects to select, see the Dev(), Pic() and Win() commands.

Parameters:

Item (Gobject)

This specifies either a picture, window or device object and the object specified then becomes the current device, picture or window. Generally if you wish to draw into a previous picture or window, the object to select is the window, drawing commands can only be into a window. The only time to select a picture explicitly is when adding a new window to an old picture.

RESULT = (Gobject or Undefined)

Returns the Gobject selected as the new current device, window or picture.