Vcl.ActnMenus.TCustomizeActionToolBar.CanAutoSize
Delphi
function CanAutoSize(var NewWidth: Integer; var NewHeight: Integer): Boolean; override;
C++
virtual bool __fastcall CanAutoSize(int &NewWidth, int &NewHeight);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.ActnMenus.pas Vcl.ActnMenus.hpp |
Vcl.ActnMenus | TCustomizeActionToolBar |
Description
Indicates how the action toolbar can be resized.
CanAutoSize is called automatically when an attempt is made to resize the toolbar.
When CanAutoSize is called, the NewWidth
and NewHeight
parameters indicate the proposed new dimensions of the toolbar. CanAutoSize calls the TCustomActionPopupMenu.CanAutoSize inherited method and returns its result. If the pop-up stack of the action band is not empty, then it returns False.