mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 05:18:00 +02:00
LCL: added THintWindow.ActivateHintData (bug #7488)
git-svn-id: trunk@10297 -
This commit is contained in:
parent
17018c7bca
commit
28bfc29f27
@ -191,6 +191,9 @@ begin
|
||||
FDateAsString := AValue;
|
||||
FDate := NewDate;
|
||||
except
|
||||
// TODO: remove test for csLoading after fpc 2.0.4 has been released
|
||||
// The Date property is not supposed to be stored, but earlier fpc version
|
||||
// did this anyway.
|
||||
if not (csLoading in ComponentState) then
|
||||
raise EInvalidDate.CreateFmt(rsInvalidDate, [AValue])
|
||||
else
|
||||
|
@ -655,6 +655,8 @@ type
|
||||
constructor Create(AOwner: TComponent); override;
|
||||
destructor Destroy; override;
|
||||
procedure ActivateHint(ARect: TRect; const AHint: String); virtual;
|
||||
procedure ActivateHintData(ARect: TRect; const AHint: String;
|
||||
AData: pointer); virtual;
|
||||
function CalcHintRect(MaxWidth: Integer; const AHint: String;
|
||||
AData: Pointer): TRect; virtual;
|
||||
procedure ReleaseHandle;
|
||||
|
@ -90,6 +90,12 @@ begin
|
||||
end;
|
||||
|
||||
procedure THintWindow.ActivateHint(ARect: TRect; const AHint: String);
|
||||
begin
|
||||
ActivateHintData(ARect, AHint, nil);
|
||||
end;
|
||||
|
||||
procedure THintWindow.ActivateHintData(ARect: TRect; const AHint: String;
|
||||
AData: pointer);
|
||||
var
|
||||
InvalidateNeeded: Boolean;
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user