Vcl.ActnMenus.TCustomMenuItem.CalcBounds
Delphi
procedure CalcBounds; override;
C++
virtual void __fastcall CalcBounds(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.ActnMenus.pas Vcl.ActnMenus.hpp |
Vcl.ActnMenus | TCustomMenuItem |
Description
Calculates the size of the menu item.
The size of the control depends on many factors, such as whether or not the menu item is a separator or not. CalcBounds computes the boundaries of the menu item considering these kinds of factors. At the end, it calls SetBounds and other routines to ensure that the values are set properly.