API:Vcl.RibbonActnCtrls.TRibbonApplicationMenuItem.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.RibbonActnCtrls.pas
Vcl.RibbonActnCtrls.hpp
Vcl.RibbonActnCtrls TRibbonApplicationMenuItem

Description

Calculates the size of the control.

Vcl.RibbonActnCtrls.TRibbonApplicationMenuItem.CalcBounds inherits from Vcl.RibbonActnCtrls.TRibbonMenuItem.CalcBounds. All content below this line refers to Vcl.RibbonActnCtrls.TRibbonMenuItem.CalcBounds.

Calculates the size of the control.

If the RibbonMenuItem is a Separator, then the Height of the control is 3 pixels, else -- 22 pixels. CalcBounds sets the boundaries of the control to these values, also considering the text bounds.

See Also