home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / delphi / tenpack.lzh / RESDEMO.PAS < prev    next >
Pascal/Delphi Source File  |  1995-05-18  |  836b  |  43 lines

  1. unit resdemo;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, StdCtrls, Gauges, PsResMet;
  8.  
  9. type
  10.   TDemoResources = class(TForm)
  11.     Label1: TLabel;
  12.     Label2: TLabel;
  13.     Label3: TLabel;
  14.     Label4: TLabel;
  15.     ResourceMeter1: TResourceMeter;
  16.     ResourceMeter2: TResourceMeter;
  17.     ResourceMeter3: TResourceMeter;
  18.     procedure ResourceMeter1LimitNotify(const Percnt: Integer;
  19.       var disable: Boolean);
  20.  
  21.   private
  22.     { Private declarations }
  23.   public
  24.     { Public declarations }
  25.   end;
  26.  
  27. var
  28.   DemoResources: TDemoResources;
  29.  
  30. implementation
  31.  
  32. {$R *.DFM}
  33.  
  34.  
  35. procedure TDemoResources.ResourceMeter1LimitNotify(const Percnt: Integer;
  36.   var disable: Boolean);
  37. begin
  38.      disable := true;
  39.      showmessage('out of resources');
  40. end;
  41.  
  42. end.
  43.