Futurebasic/Language/Reference/window function

< Futurebasic < Language < Reference

WINDOW

Syntax

WindowInformation = WINDOW(expr)

Revision: February, 2002 (Release 6)

Description

This function returns information related to a window (usually the current output window). The value you specify in expr determines what kind of information is returned, as described in the following paragraphs.

ID's of Active Window , Active Document Window, Active Palette Window and Output Window

Window Size

Window Position (Appearance manager)

Pen Position

Window Record Pointer

Clipboard Contents

Window Class (Standard BASIC only)

Other Window Info (Appearance Manager)

BEGIN RECORD FBwindowDescription   DIM FBwRef<spacer type="horizontal" size="227">AS LONG<spacer type="horizontal" size="22">// standard FB Ref number
  DIM FBwZoomRect<spacer type="horizontal" size="51">AS RECT<spacer type="horizontal" size="21">// best zoom out pos,
<spacer type="horizontal" size="248">// empty for default
  DIM FBwAttributes<spacer type="horizontal" size="37">AS WindowAttributes
  DIM FBwWindowClass   AS WindowClass
  DIM FBwControlList   AS HANDLE // linked list of controls
  DIM FBwEFList<spacer type="horizontal" size="65">AS HANDLE // linked list of EFs
  DIM FBwFSSpec<spacer type="horizontal" size="65">AS FSSpec // associated file spec
<spacer type="horizontal" size="248">// (affects proxy icon)
  DIM FBwCreator<spacer type="horizontal" size="58">AS OSType // for proxy icon
  DIM FBwFileType<spacer type="horizontal" size="51">AS OSType // for proxy icon
  DIM FBidealSizeX<spacer type="horizontal" size="44">AS SHORT<spacer type="horizontal" size="15">// zoom
  DIM FBidealSizeY<spacer type="horizontal" size="44">AS SHORT<spacer type="horizontal" size="15">// zoom
  DIM FBwClipRgn<spacer type="horizontal" size="58">AS RgnHandle
  DIM FBwVScrollH<spacer type="horizontal" size="51">AS HANDLE // 0 if no v scroll bar
  DIM FBwHScrollH<spacer type="horizontal" size="51">AS HANDLE // 0 if no h scroll bar
  DIM FBwCategory<spacer type="horizontal" size="51">AS LONG
  DIM FBwClickThru<spacer type="horizontal" size="44">AS BOOLEAN
  DIM FBwUpdateVisRgn<spacer type="horizontal" size="22">AS BOOLEAN
  DIM FBwKeepInactive<spacer type="horizontal" size="22">AS BOOLEAN // for backdrop window
  DIM FBwNoAutoFocus   AS BOOLEAN // affects tab key
<spacer type="horizontal" size="255">// handling with EFs &
<spacer type="horizontal" size="255">// text buttons
  DIM &
END RECORD

Screen Borders in Local Coordinates

(Note that these numbers are meaningless if output is currently directed to some place other than a screen window.)

Checking Whether a Window Exists If you specify a negative value in expr, WINDOW(expr) returns a nonzero value if there exists a window whose ID number is ABS(expr); it returns zero otherwise. The returned value does not depend on whether the window is currently visible or not; it only depends on whether the window has been created (using the WINDOW statement) and not yet closed (using the WINDOW CLOSE statement).

Edit Field and Picture Field Information

Note

If output is currently directed to a graphics port other than a screen window (e.g. to the printer, or to an offscreen GWorld), then references to the "current output window" apply to the current port, unless otherwise specified.

See Also

WINDOW statement; EDIT FIELD; PICTURE FIELD; SET SELECT; TEHANDLE; GET WINDOW; SYSTEM function; APPEARANCE WINDOW; DEF WINDOWCATEGORY

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.