Vcl.StdActnMenus.TStandardCustomizePopup.CanAutoSize

From RAD Studio API Documentation
Jump to: navigation, search

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.StdActnMenus.pas
Vcl.StdActnMenus.hpp
Vcl.StdActnMenus TStandardCustomizePopup

Description

Indicates how the action toolbar can be resized.

Vcl.StdActnMenus.TStandardCustomizePopup.CanAutoSize inherits from Vcl.ActnMenus.TCustomizeActionToolBar.CanAutoSize. All content below this line refers to Vcl.ActnMenus.TCustomizeActionToolBar.CanAutoSize.

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.

See Also