Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

MWAPI - SIZE

Draft MDC Standard

5.4.31 SIZE wattribute

Definition

SIZE specifies the width and height of the window viewport, expressed in the unit of measure defined by the unitspec component of the size value, if present, and by the window’s UNITS wattribute otherwise.

If the unit of measure is CHAR, the basis font is the font specified by the window’s FFACE, FSIZE and FSTYLE wattributes.

If the window’s TIED wattribute is TRUE and the unit of measure is REL, the basis size is the size of the parent’s window viewport when the parent is created. If the window’s TIED wattribute is FALSE and the unit of measure is REL, the basis size is the size of the display.

When an application assigns a value to the SIZE wattribute of an existing window, if hsize or vsize is not specified then the horizontal or vertical size of the window, respectively, is not altered.

If the window is in build mode, setting the SIZE re-establishes the basis size used for subsequent interpretation of REL units. Resizing of the viewport as a consequence of user action does not alter the basis size.

Domain size
Access Create, Modify, Reference
Default

If hsize, vsize, or both are not specified when a window is created, defaults for the unspecified values are determined as described below.

When an application window is created, the MWAPI attempts to make it large enough to encompass all visible gadgets, defined at that time, whose POS elattributes do not contain negative values for hpos or vpos. However, if the position or size of any such gadget is defined with a unit of measure of REL, the window hsize, vsize, or both are equal to seventy-five percent of the size of the equivalent dimension of the display on which the window appears. Subsequent creation, destruction or movement of gadgets does not cause the SIZE value to change.

When an MTERM window is created, an implementation may determine a default size based on openarguments specified for the window. If the default size is not determined in this way, the default size is the equivalent of "80,24,CHAR".

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.

Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.

This page most recently updated on 14-Nov-2023, 22:01:33.

For comments, contact Ed de Moel (demoel@jacquardsystems.com)