[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomLabel.CalcFittingFontHeight

Calculate the maximum height of the font needed to fit the available space, given the MaxWidth and MaxHeight constraints

Declaration

Source position: stdctrls.pp line 1536

public function TCustomLabel.CalcFittingFontHeight(

  const TheText: string;

  MaxWidth: Integer;

  MaxHeight: Integer;

  out FontHeight: Integer;

  out NeededWidth: Integer;

  out NeededHeight: Integer

):Boolean;

The latest version of this document can be found at lazarus-ccr.sourceforge.net.