Unit 'ComCtrls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#lcl]

TCustomUpDown.Wrap

Enables or disables wrap-around for the value in Position when it exceeds the limits in Min or Max.

Declaration

Source position: comctrls.pp line 2001

protected property TCustomUpDown.Wrap : Boolean
  read FWrap
  write SetWrap
  default False;

Description

Wrap is a Boolean property which indicates if the value in Position is wrapped to the Min or Max value when incremented/decremented beyond the limits for the value.

The default value for the property is False, and prevents any change to the value in Position when it would exceed the lower or upper limit. When set to True, incrementing Position beyond the value in Max causes it to be reset to the value in Min. Likewise, decrementing Position beyond the value in Min causes it to be reset to the value in Max.

Changing the value for the property causes the widgetset class to be updated when its handle has been assigned.

Wrap is used in the Click method when a new value is applied to Position following a button click on the control.

See also

TCustomUpDown.Position

  

The current position (or value) for the control as a SmallInt type.

TCustomUpDown.Max

  

The largest value allowed in the Position property.

TCustomUpDown.Min

  

The smallest value allowed in the Position property.

TCustomUpDown.Click

  

Handles a mouse click on a speed button in the control.



CT Web help

CodeTyphon Studio