From 1bfd60aa8d2f68eb38bb8bf02c80af82d58c63fc Mon Sep 17 00:00:00 2001 From: dsiders Date: Fri, 1 Oct 2021 18:51:37 +0100 Subject: [PATCH] Docs: LCL/filectrl. Updates MinimizeName to specify that the width argument is pixels and not characters. (cherry picked from commit 736e71078e28322222ddb25dd3a46e145f10ef59) --- docs/xml/lcl/filectrl.xml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/xml/lcl/filectrl.xml b/docs/xml/lcl/filectrl.xml index 6cac15796d..fc05a0b80d 100644 --- a/docs/xml/lcl/filectrl.xml +++ b/docs/xml/lcl/filectrl.xml @@ -956,19 +956,18 @@ Binaries (*.exe) - Returns a shortened version of a file name, so that it fits within the given MaxWidth. + + Returns a shortened version of the specified file name that fits within the number of pixels in MaxWidth. +

- This function will return a shortened version of FileName, so that it fits within the width given in MaxWidth. It uses the Font currently assigned to the Canvas argument. -

-

- For example: 'C:\Documents and Settings\User\Application Data\Microsoft\Word\custom.dic' would be shortened to a value like: 'C:\...\Word\custom.dic'. + This function will return a shortened version of FileName which fits within the number of pixels given in MaxWidth. For example: 'C:\Documents and Settings\User\Application Data\Microsoft\Word\custom.dic' would be shortened to a value like: 'C:\...\Word\custom.dic'.

- No actions are performed in the routine when path information is not included in FileName. Normalizes all path delimiters in the file name to the first path delimiter found in the argument. + No actions are performed in the routine when path information is not included in FileName. The function normalizes all path delimiters in the file name to the first path delimiter found in the FileName argument.

- When FileName is longer than the value in MaxWidth, directory names are dropped and replaced with a single '...' string value until the shortened file name fits within the specified width. Please note that this is a string with three (3) period ('.') characters, and NOT an Ellipsis (…)(#$2026) character. + MinimizeName uses the Font currently assigned to the Canvas argument to calculate the width (in pixels) for the file name. When the width of the FileName argument is larger than the value in MaxWidth, directory names are dropped and replaced with a single '...' string value until the shortened file name fits within the specified width. Please note that the replacement characters are a string with three (3) Period ('.') characters, and NOT an Ellipsis (…)(#$2026) character.