API:Vcl.RibbonActnCtrls.TRibbonComboBoxItem.CalcBounds

From RAD Studio API Documentation

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 TRibbonComboBoxItem

Description

Calculates the size of the control. Vcl.RibbonActnCtrls.TRibbonComboBoxItem.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