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

TCustomEdit.NumbersOnly

Indicates if the edit control accepts numeric values only.

Declaration

Source position: stdctrls.pp line 868

public property TCustomEdit.NumbersOnly : Boolean
  read GetNumbersOnly
  write SetNumbersOnly
  default False;

Description

NumbersOnly is a Boolean property which controls whether the edit control is limited to numeric characters when edited. The default value for the property is False.

Changing the property value causes the widgetset class to be notified when a handle has been allocated for the control.

NumbersOnly is used in CreateParams to include the ES_NUMBER edit style in the creation parameters for the control when set to True.

See also

TCustomEdit.CreateParams

  

Ensures the required creation parameters are set for handle creation.



CT Web help

CodeTyphon Studio