Left Property
Object List Next Object
Defined By: Window
Description:
Left specifies the horizontal distance between the inner left edge of a form
or control and the left side of its container. In combination with the Top
property it determines the location for a form or control.
Details:
This value can be set directly by entering the value in the Property Editor or
code, or indirectly by moving the object with the mouse. The Left property
value is a single-precision number. Keep in mind that the placement of objects
looks different on different screen resolutions.
Forms are always measured in twips, and a control is measured in the units
specified by the ScaleMode property of its container. Any time the Scale Mode
property is changed, the value of the Left property is affected accordingly. For
both forms and controls, the Left property's value changes as the object is moved
either manually or by code.
The Left property is used in combination with the Top, Width, and Height
properties to determine the size and position of an object. However, for operations
that require setting more than one of these properties, invoking the Move
method of that object is usually more efficient.
Don’t confuse Left, Top, Width, and Height with ScaleLeft, ScaleTop, ScaleWidth,
and ScaleHeight. The Scale properties determine the coordinate system of
container objects, such as forms, while the size and position properties affect the
placement and extent of forms and controls on the screen. Setting the Scale
properties will never move a window on the screen or change its size, while setting
a size or position property always does.
Data Type: Single
See Also:
Left property, Move method