API:Vcl.ActnCtrls.TCustomButtonControl.CalcBounds

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CalcBounds; override;

C++

virtual void __fastcall CalcBounds();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.ActnCtrls.pas
Vcl.ActnCtrls.hpp
Vcl.ActnCtrls TCustomButtonControl

Description

Calculates the size of the control.

Vcl.ActnCtrls.TCustomButtonControl.CalcBounds inherits from Vcl.ActnMan.TCustomActionControl.CalcBounds. All content below this line refers to Vcl.ActnMan.TCustomActionControl.CalcBounds.

Calculates the size of the control.

The size of the control depends on many factors, such as the presence of an icon, caption, and shortcuts. CalcBounds computes the boundaries of the control considering these kinds of factors. At the end, it calls SetBounds and other routines to ensure that the values are set properly.

See Also