home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d9xx
/
d922
/
designer.lha
/
DesignerDemo
/
AllKindsDemo
/
AllKindsDemo.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-10-07
|
1KB
|
52 lines
{ Simple Designer Demo }
Program ButtonDemo;
Uses exec,intuition,gadtools,graphics,amiga,diskfont,
workbench,utility,allkindsdemowin;
var
done : boolean;
class : long;
pimsg : pintuimessage;
dummy : long;
begin
if openlibs then
begin
if makeimages then
begin
if openwindowdisplaywindow then
begin
done:=false;
repeat
dummy:=wait(bitmask(displaywindow^.userport^.mp_sigbit));
pimsg:=gt_getimsg(displaywindow^.userport);
while(pimsg<>nil) do
begin
class:=pimsg^.class;
gt_replyimsg(pimsg);
case class of
idcmp_closewindow :
done:=true;
idcmp_refreshwindow :
begin
gt_beginrefresh(displaywindow);
rendwindowdisplaywindow;
gt_endrefresh(displaywindow,true);
end;
end;
pimsg:=gt_getimsg(displaywindow^.userport);
end;
until done;
closewindowdisplaywindow;
end
else
writeln('Could not open window.');
freeimages;
end
else
writeln('Could not make images.');
closelibs;
end
else
writeln('Could not open libraries.');
end.