RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRibbonGalleryControlMenuItem.CalcBounds Method

Calculates the size of the menu item.

Pascal
procedure CalcBounds; override;
C++
virtual __fastcall CalcBounds();

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!