clientWidth

clientWidth(): Integer;

The clientWidth method of the Control class returns the width of the client area of a control in pixels.

The client area of a control is the area inside the border area or scroll bars where controls can be placed. The position of child controls is relative to the top left of this client area.

The code fragment in the following example shows the use of the clientWidth method.

btn.width := clientWidth / ButtonWidthRatio;

See also the clientWidth property of the Form class.