home *** CD-ROM | disk | FTP | other *** search
/ Chip: Shareware for Win 95 / Chip-Shareware-Win95.bin / ostatni / delphi / ruzne / zcd30120.exe / Demo / v11_3.pas < prev    next >
Pascal/Delphi Source File  |  1997-05-04  |  798b  |  44 lines

  1. unit V11_3;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, Animate, ExtCtrls;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     ScrollBox1: TScrollBox;
  12.     Image1: TImage;
  13.     zColorBtn1: TzColorBtn;
  14.     procedure zColorBtn1Click(Sender: TObject);
  15.   private
  16.     { Private declarations }
  17.   public
  18.     { Public declarations }
  19.   end;
  20.  
  21. var
  22.   Form1: TForm1;
  23.  
  24. implementation
  25.  
  26. {$R *.DFM}
  27.  
  28. procedure TForm1.zColorBtn1Click(Sender: TObject);
  29. Var
  30.   T : TzDeskTop;
  31. begin
  32.   T:=TzDesktop.Create;
  33.   Image1.Width:=T.Width*2;
  34.   Image1.Height:=T.height*2;
  35.   Hide;
  36.   Application.processmessages;
  37.   Image1.Canvas.CopyRect(Image1.ClientRect,T,Rect(0,0,T.Width,T.height));
  38.   Show;
  39.   Application.processmessages;
  40.   T.free;
  41. end;
  42.  
  43. end.
  44.