mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-11 09:40:31 +01:00
lcl: add Variant => TCaption operator
git-svn-id: trunk@22325 -
This commit is contained in:
parent
20a578cf98
commit
9f073bba5d
@ -2372,6 +2372,8 @@ function DbgS(Anchors: TAnchors): string; overload;
|
||||
function DbgS(a: TAlign): string; overload;
|
||||
function DbgS(a: TAnchorKind; Side: TAnchorSideReference): string; overload;
|
||||
|
||||
operator := (AVariant: Variant): TCaption;
|
||||
|
||||
// register (called by the package initialization in design mode)
|
||||
procedure Register;
|
||||
|
||||
@ -2388,6 +2390,11 @@ var
|
||||
// what child control of this TWinControl has actually the capture.
|
||||
CaptureControl: TControl=nil;
|
||||
|
||||
operator := (AVariant: Variant): TCaption;
|
||||
begin
|
||||
Result := String(AVariant);
|
||||
end;
|
||||
|
||||
procedure AdjustBorderSpace(var RemainingClientRect, CurBorderSpace: TRect;
|
||||
Left, Top, Right, Bottom: integer);
|
||||
// RemainingClientRect: remaining clientrect without CurBorderSpace
|
||||
|
||||
Loading…
Reference in New Issue
Block a user