Blitz3D+ Command Reference

GadgetY ( gadget )

Parameters

gadget - gadget to read the position of

Description

Returns a gadget's y position.

Requires Extended language mode.

Reads the top edge of the gadget in logical 96-DPI units, relative to the client area of its group - the value from creation or SetGadgetShape, kept current by any SetGadgetLayout rules. For a window, y is a desktop coordinate instead.

The vertical half of the geometry quartet with GadgetX, GadgetWidth and GadgetHeight. A typical manual-layout use is stacking: place each row of controls at GadgetY(previous)+GadgetHeight(previous)+gap.

Because the value is logical, it matches on every monitor; the GUI handles per-monitor DPI scaling underneath.

The world editor shell sample shows the layout work these getters support.

See also: GadgetX, GadgetWidth, GadgetHeight, SetGadgetShape, SetGadgetLayout.

Index