mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-06 17:52:42 +02:00

OnlinePackageManager: Adapt to the new virtualtreeview package. git-svn-id: trunk@60132 -
59 lines
1.0 KiB
ObjectPascal
59 lines
1.0 KiB
ObjectPascal
unit laz.VirtualPanningWindow;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
LCLType, Graphics, Classes, SysUtils;
|
|
|
|
type
|
|
|
|
{ TVirtualPanningWindow }
|
|
|
|
TVirtualPanningWindow = class
|
|
private
|
|
FHandle: THandle;
|
|
FOwnerHandle: THandle;
|
|
FImage: TBitmap;
|
|
procedure HandlePaintMessage;
|
|
public
|
|
procedure Start(OwnerHandle: THandle; const Position: TPoint);
|
|
procedure Stop;
|
|
procedure Show(ClipRegion: HRGN);
|
|
property Image: TBitmap read FImage;
|
|
property Handle: THandle read FHandle;
|
|
end;
|
|
|
|
implementation
|
|
|
|
{$ifdef DEBUG_VTV}
|
|
uses
|
|
laz.VTLogger;
|
|
{$endif}
|
|
|
|
{ TVirtualPanningWindow }
|
|
|
|
procedure TVirtualPanningWindow.HandlePaintMessage;
|
|
begin
|
|
end;
|
|
|
|
procedure TVirtualPanningWindow.Start(OwnerHandle: THandle; const Position: TPoint);
|
|
begin
|
|
FImage := TBitmap.Create;
|
|
end;
|
|
|
|
procedure TVirtualPanningWindow.Stop;
|
|
begin
|
|
FImage.Free;
|
|
FImage := nil;
|
|
end;
|
|
|
|
procedure TVirtualPanningWindow.Show(ClipRegion: HRGN);
|
|
begin
|
|
{$ifdef DEBUG_VTV}Logger.SendBitmap([lcPanning],'Panning Image',FImage);{$endif}
|
|
end;
|
|
|
|
end.
|
|
|