git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7215 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2020-01-02 13:01:42 +00:00
parent 93ebcc497e
commit c745a3cc75

View File

@ -342,9 +342,10 @@ type
procedure Notification(AComponent: TComponent; Operation: TOperation); override; procedure Notification(AComponent: TComponent; Operation: TOperation); override;
procedure CreateWnd; override; procedure CreateWnd; override;
function GetDragImages: TDragImageList; override; function GetDragImages: TDragImageList; override;
procedure SetHint(const Value: TTranslateString); override;
property Align default alTop; property Align default alTop;
property Color default clWindow; property Color default clWindow;
procedure SetHint(const Value: TTranslateString); override;
{ new properties } { new properties }
property Year: Word read GetYear write SetYear; property Year: Word read GetYear write SetYear;
@ -606,6 +607,8 @@ end;
procedure TJvTimeItem.Update; procedure TJvTimeItem.Update;
begin begin
if not FParent.FTimeLine.HandleAllocated then
exit;
LCLIntf.InvalidateRect(FParent.FTimeLine.Handle, @FRect, True); LCLIntf.InvalidateRect(FParent.FTimeLine.Handle, @FRect, True);
FParent.FTimeLine.UpdateItem(Index, FParent.FTimeLine.Canvas); FParent.FTimeLine.UpdateItem(Index, FParent.FTimeLine.Canvas);
LCLIntf.InvalidateRect(FParent.FTimeLine.Handle, @FRect, True); LCLIntf.InvalidateRect(FParent.FTimeLine.Handle, @FRect, True);
@ -2143,6 +2146,8 @@ procedure TJvCustomTimeLine.UpdateItems;
var var
I: Integer; I: Integer;
begin begin
if not HandleAllocated then
exit;
if csDestroying in ComponentState then if csDestroying in ComponentState then
Exit; Exit;
FNewHeight := 0; FNewHeight := 0;
@ -2954,5 +2959,4 @@ begin
end; end;
end; end;
end. end.