Vcl.RibbonActnCtrls.TRibbonMenuItem.CalcBounds

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CalcBounds; override;

C++

virtual void __fastcall CalcBounds(void);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.RibbonActnCtrls.pas
Vcl.RibbonActnCtrls.hpp
Vcl.RibbonActnCtrls TRibbonMenuItem

Description

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