Vcl.ComCtrls.TToolBar.ChangeScale
Delphi
procedure ChangeScale(M, D: Integer; isDpiChange: Boolean); override;
C++
DYNAMIC void __fastcall ChangeScale(int M, int D, bool isDpiChange)/* overload */;
DYNAMIC inline void __fastcall ChangeScale(int M, int D){ Vcl::Controls::TControl::ChangeScale(M, D); }
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TToolBar |
Description
Repositions and resizes the toolbar by a specified ratio.
Use ChangeScale to change the scale of the toolbar.
ChangeScale modifies the position and size of a toolbar as well as rescaling the buttons. Thus, ChangeScale modifies the Top, Left, Width, and Height properties.
The M and D parameters define a fraction by which to scale the control. The M parameter is the multiplier and the D parameter is the divisor. For example, to make a control 75% of its original size, specify the value of M as 75, and the value of D as 100 (75/100). Alternately, the same results are achieved by specifying the value of M as 3, and the value of D as 4 (3/4). Both fractions are equal and result in the control being scaled by the same amount, 75%.