home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
delphi
/
tenpack.lzh
/
RESDEMO.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-05-18
|
836b
|
43 lines
unit resdemo;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Gauges, PsResMet;
type
TDemoResources = class(TForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
ResourceMeter1: TResourceMeter;
ResourceMeter2: TResourceMeter;
ResourceMeter3: TResourceMeter;
procedure ResourceMeter1LimitNotify(const Percnt: Integer;
var disable: Boolean);
private
{ Private declarations }
public
{ Public declarations }
end;
var
DemoResources: TDemoResources;
implementation
{$R *.DFM}
procedure TDemoResources.ResourceMeter1LimitNotify(const Percnt: Integer;
var disable: Boolean);
begin
disable := true;
showmessage('out of resources');
end;
end.