mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 10:19:28 +02:00
Some clarification comments
git-svn-id: trunk@33317 -
This commit is contained in:
parent
e59e197d1e
commit
926a51a81f
@ -1093,7 +1093,10 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{ Returns in MaxCount how many characters fit into a given MaxWidth
|
{ Returns in MaxCount how many characters fit into a given MaxWidth
|
||||||
It also returns the width of each character }
|
It also returns the width of each character
|
||||||
|
|
||||||
|
MaxCount is given in the number of UTF-8 characters, not bytes
|
||||||
|
}
|
||||||
function TWidgetSet.GetTextExtentExPoint(DC: HDC; Str: PChar;
|
function TWidgetSet.GetTextExtentExPoint(DC: HDC; Str: PChar;
|
||||||
Count, MaxWidth: Integer; MaxCount, PartialWidths: PInteger;
|
Count, MaxWidth: Integer; MaxCount, PartialWidths: PInteger;
|
||||||
var Size: TSize): Boolean;
|
var Size: TSize): Boolean;
|
||||||
|
@ -2050,6 +2050,7 @@ begin
|
|||||||
Result := TColorRef(Windows.GetTextColor(DC));
|
Result := TColorRef(Windows.GetTextColor(DC));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
// MaxCount is provided in the number of UTF-8 characters, not bytes
|
||||||
function TWin32WidgetSet.GetTextExtentExPoint(DC: HDC; Str: PChar;
|
function TWin32WidgetSet.GetTextExtentExPoint(DC: HDC; Str: PChar;
|
||||||
Count, MaxWidth: Integer; MaxCount, PartialWidths: PInteger; var Size: TSize): Boolean;
|
Count, MaxWidth: Integer; MaxCount, PartialWidths: PInteger; var Size: TSize): Boolean;
|
||||||
var
|
var
|
||||||
|
Loading…
Reference in New Issue
Block a user