BeautifyLineXY function
Combines and optionally shortens the specified values.
Declaration
function BeautifyLineXY(const Filename: string; const Line: string;
X: Integer; Y: Integer): stringDescription
BeautifyLineXY is a
String function used to combine the
values in the
Filename,
Line,
X and
Y arguments into a formatted message. The message is in the form:
examplefile.pas (123, 1) The error message goes here.
Filename contains a file name used at the start of the formatted
message.
X represents the line number in the context for the message.
Y represents the column number in the context for the message.
Line contains the context for the formatted message. The
ShortDotsLine routine is called to shorten and "ellipsify" the
message in Line when needed.
BeautifyLineXY is used in the implementation of Jump History and Search Result views in the Lazarus IDE.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
