home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
emulator
/
appleonamiga
/
txt
/
acgadgets.mod
< prev
next >
Wrap
Text File
|
1995-02-27
|
2KB
|
135 lines
IMPLEMENTATION MODULE ACGadgets;
FROM SYSTEM IMPORT ADR,LONGSET;
IMPORT
g:GraphicsD,i:IntuitionD;
CONST
angleVertex=3;
boxL=20;
boxDif=20;
boxT1=20; boxT2=boxT1+boxDif; boxT3=boxT2+boxDif;
boxW=200; boxH=10;
textL=10; textT=2;
TYPE
AngleBorder=ARRAY[0..2*angleVertex-1] OF INTEGER;
VAR
border2:=i.Border{
leftEdge:0
,topEdge:0
,frontPen:1
,backPen:0
,drawMode:g.jam1
,count:angleVertex
,xy:ADR(AngleBorder{
boxW+1,-2
,boxW+1,boxH+1
,-2,boxH+1
})
,nextBorder:NIL
};
border:=i.Border{
leftEdge:0
,topEdge:0
,frontPen:2
,backPen:0
,drawMode:g.jam1
,count:angleVertex
,xy:ADR(AngleBorder{
-2,boxH+1
,-2,-2
,boxW+1,-2
})
,nextBorder:ADR(border2)
};
textAttr:=g.TextAttr{
name:ADR("topaz.font")
,ySize:8
,style:g.FontStyleSet{}
,flags:g.FontFlagSet{}
};
gadget3:=i.Gadget{
nextGadget:NIL
,leftEdge:boxL
,topEdge:boxT3
,width:boxW
,height:boxH
,flags:i.GadgetFlagSet{}
,activation:i.ActivationFlagSet{i.relVerify}
,gadgetType:i.boolGadget
,gadgetRender:ADR(border)
,selectRender:NIL
,gadgetText:ADR(i.IntuiText{
frontPen:1
,backPen:0
,drawMode:g.jam1
,leftEdge:textL
,topEdge:textT
,iTextFont:ADR(textAttr)
,iText:ADR("Send AmigaComm")
,nextText:NIL
})
,mutualExclude:LONGSET{}
,specialInfo:NIL
,gadgetID:3
,userData:NIL
};
gadget2:=i.Gadget{
nextGadget:ADR(gadget3)
,leftEdge:boxL
,topEdge:boxT2
,width:boxW
,height:boxH
,flags:i.GadgetFlagSet{}
,activation:i.ActivationFlagSet{i.relVerify}
,gadgetType:i.boolGadget
,gadgetRender:ADR(border)
,selectRender:NIL
,gadgetText:ADR(i.IntuiText{
frontPen:1
,backPen:0
,drawMode:g.jam1
,leftEdge:textL
,topEdge:textT
,iTextFont:ADR(textAttr)
,iText:ADR("Receive ROM")
,nextText:NIL
})
,mutualExclude:LONGSET{}
,specialInfo:NIL
,gadgetID:2
,userData:NIL
};
gadget1:=i.Gadget{
nextGadget:ADR(gadget2)
,leftEdge:boxL
,topEdge:boxT1
,width:boxW
,height:boxH
,flags:i.GadgetFlagSet{}
,activation:i.ActivationFlagSet{i.relVerify}
,gadgetType:i.boolGadget
,gadgetRender:ADR(border)
,selectRender:NIL
,gadgetText:ADR(i.IntuiText{
frontPen:1
,backPen:0
,drawMode:g.jam1
,leftEdge:textL
,topEdge:textT
,iTextFont:ADR(textAttr)
,iText:ADR("Receive Disk")
,nextText:NIL
})
,mutualExclude:LONGSET{}
,specialInfo:NIL
,gadgetID:1
,userData:NIL
};
BEGIN
gadgets:=ADR(gadget1);
END ACGadgets.