LayoutEffect Property

Applies To

CheckBox control, ComboBox control, CommandButton control, Image control, Label control, ListBox control, MultiPage control, OptionButton control, ScrollBar control, SpinButton control, TabStrip control, TextBox control, ToggleButton control.

Description

Specifies whether a control was moved during a layout change.

Syntax

object.LayoutEffect

The LayoutEffect property syntax has these parts:

Part

Description

object

Required. A valid object.


Return Values

The LayoutEffect property return values are:

Constant

Value

Description

fmLayoutEffectNone

0

The control was not moved.

fmLayoutEffectInitiate

1

The control was moved.


Remarks

The LayoutEffect property is read-only and is available only in the Layout event. The Layout event is initiated by the Move method if the Layout argument is True.

The Layout event is not initiated when you change the settings of the Left, Top, Height, or Width properties of a control.

The Layout event sets LayoutEffect for any control that was involved in a move operation. For example, if you move a group of controls, LayoutEffect of each control is set.

See Also

Layout event, Move method, OldHeight, OldWidth properties, OldLeft, OldTop properties.

Example

See the Layout event example.