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

MiniMizeName

Returns a shortened version of a file name, so that it fits on the given MaxWidth

Declaration

Source position: filectrl.pp line 225

function MiniMizeName(

  FileName: string;

  Canvas: TCanvas;

  MaxWidth: Integer

):string;

Description

This function will return a shortened version of FileName, so that it fits on the given MaxWidth. It uses the Font currently selected in the given Canvas.

For example: C:\Documents and Settings\User\Application Data\Microsoft\Word\custom.dic would become something like: C:\...\Word\custom.dic

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