METRICS function  

Purpose

Retrieves information or dimensions of system elements.

Syntax

MetricVar = METRICS(MetricName)

Remarks

Returns information about the particular system metric specified by the parameter MetricName.  All dimensions are specified in pixels.  For example:

MetricVar& = METRICS(Scroll.Horz)

The above example retrieves the height (in pixels) of a horizontal scrollbar, and assigns it to the variable MetricVar&.

MetricName

MetricName

Description

BORDER.X

The width of a window border.

BORDER.Y

The height of a window border.

CAPTION

The height of a normal caption area.

EDGE.X

The width of a 3-D border.

EDGE.Y

The height of a 3-D border.

FRAME.FIXED.X

The thickness of the horizontal frame of a window which is fixed size (one which cannot be resized).

FRAME.FIXED.Y

The thickness of the vertical frame of a window which is fixed size (one which cannot be resized).

FRAME.RESIZE.X

The thickness of the horizontal frame of a window which can be resized.

FRAME.RESIZE.Y

The thickness of the vertical frame of a window which can be resized.

ICON.X

The default width of an icon.

ICON.Y

The default height of an icon.

ICONSPACE.X

The width of a grid cell for items in large icon view.

ICONSPACE.Y

The height of a grid cell for items in large icon view.

MAXIMIZED.X

The width of a maximized top-level window.

MAXIMIZED.Y

The height of a maximized top-level window.

MENUBAR

The height of a single-line menu bar.

MINIMUM.X

The minimum width of a window.

MINIMUM.Y

The minimum height of a window.

SCROLL.HORZ

The height of a horizontal scrollbar.

SCROLL.VERT

The width of a vertical scrollbar.