home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD2.img
/
d4xx
/
d438
/
toollib
/
examples
/
gadgetdemo.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-01-17
|
11KB
|
516 lines
/*-------------------------------------------------*
Gadgets created with GadgetEd V2.0
(c) Copyright 1990 by Jaba Development
written by Jan van den Baard
*-------------------------------------------------*/
SHORT Gadget29_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget29_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget29_pairs,NULL };
#define Gadget29_ID 29
struct Gadget Gadget29 = {
NULL,281,83,36,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&Gadget29_bord,NULL,
NULL,NULL,NULL,Gadget29_ID,NULL };
SHORT Gadget28_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget28_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget28_pairs,NULL };
#define Gadget28_ID 28
struct Gadget Gadget28 = {
&Gadget29,240,83,36,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&Gadget28_bord,NULL,
NULL,NULL,NULL,Gadget28_ID,NULL };
SHORT Gadget27_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget27_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget27_pairs,NULL };
#define Gadget27_ID 27
struct Gadget Gadget27 = {
&Gadget28,199,83,36,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&Gadget27_bord,NULL,
NULL,NULL,NULL,Gadget27_ID,NULL };
SHORT first_sh_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border first_sh_bord = {
0,0,1,0,JAM1,5,(SHORT *)&first_sh_pairs,NULL };
#define first_sh_ID 26
struct Gadget first_sh = {
&Gadget27,158,83,36,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&first_sh_bord,NULL,
NULL,NULL,NULL,first_sh_ID,NULL };
SHORT shgd_pairs[] = {
-1,-1,146,-1,146,10,-1,10,-1,-1 };
struct Border shgd_bord = {
0,0,1,0,JAM1,5,(SHORT *)&shgd_pairs,NULL };
struct IntuiText shgd_text = {
1,0,JAM1,2,1,NULL,(UBYTE *)"ShadowGadget ->",NULL };
#define shgd_ID 25
struct Gadget shgd = {
&first_sh,7,83,146,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&shgd_bord,NULL,
&shgd_text,NULL,NULL,shgd_ID,NULL };
SHORT Gadget24_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget24_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget24_pairs,NULL };
#define Gadget24_ID 24
struct Gadget Gadget24 = {
&shgd,281,69,36,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&Gadget24_bord,NULL,
NULL,NULL,NULL,Gadget24_ID,NULL };
SHORT Gadget23_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget23_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget23_pairs,NULL };
#define Gadget23_ID 23
struct Gadget Gadget23 = {
&Gadget24,240,69,36,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&Gadget23_bord,NULL,
NULL,NULL,NULL,Gadget23_ID,NULL };
SHORT Gadget22_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget22_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget22_pairs,NULL };
#define Gadget22_ID 22
struct Gadget Gadget22 = {
&Gadget23,199,69,36,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&Gadget22_bord,NULL,
NULL,NULL,NULL,Gadget22_ID,NULL };
SHORT first_er_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border first_er_bord = {
0,0,1,0,JAM1,5,(SHORT *)&first_er_pairs,NULL };
#define first_er_ID 21
struct Gadget first_er = {
&Gadget22,158,69,36,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&first_er_bord,NULL,
NULL,NULL,NULL,first_er_ID,NULL };
SHORT ergd_pairs[] = {
-1,-1,146,-1,146,10,-1,10,-1,-1 };
struct Border ergd_bord = {
0,0,1,0,JAM1,5,(SHORT *)&ergd_pairs,NULL };
struct IntuiText ergd_text = {
1,0,JAM1,2,1,NULL,(UBYTE *)"EraseGadget ->",NULL };
#define ergd_ID 20
struct Gadget ergd = {
&first_er,7,69,146,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&ergd_bord,NULL,
&ergd_text,NULL,NULL,ergd_ID,NULL };
SHORT Gadget19_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget19_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget19_pairs,NULL };
#define Gadget19_ID 19
struct Gadget Gadget19 = {
&ergd,281,55,36,10,
GADGHCOMP,
TOGGLESELECT+RELVERIFY,
BOOLGADGET,
(APTR)&Gadget19_bord,NULL,
NULL,NULL,NULL,Gadget19_ID,NULL };
SHORT Gadget18_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget18_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget18_pairs,NULL };
#define Gadget18_ID 18
struct Gadget Gadget18 = {
&Gadget19,240,55,36,10,
GADGHCOMP,
TOGGLESELECT+RELVERIFY,
BOOLGADGET,
(APTR)&Gadget18_bord,NULL,
NULL,NULL,NULL,Gadget18_ID,NULL };
SHORT Gadget17_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget17_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget17_pairs,NULL };
#define Gadget17_ID 17
struct Gadget Gadget17 = {
&Gadget18,199,55,36,10,
GADGHCOMP,
TOGGLESELECT+RELVERIFY,
BOOLGADGET,
(APTR)&Gadget17_bord,NULL,
NULL,NULL,NULL,Gadget17_ID,NULL };
SHORT first_se_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border first_se_bord = {
0,0,1,0,JAM1,5,(SHORT *)&first_se_pairs,NULL };
#define first_se_ID 16
struct Gadget first_se = {
&Gadget17,158,55,36,10,
GADGHCOMP,
TOGGLESELECT+RELVERIFY,
BOOLGADGET,
(APTR)&first_se_bord,NULL,
NULL,NULL,NULL,first_se_ID,NULL };
SHORT segd_pairs[] = {
-1,-1,146,-1,146,10,-1,10,-1,-1 };
struct Border segd_bord = {
0,0,1,0,JAM1,5,(SHORT *)&segd_pairs,NULL };
struct IntuiText segd_text = {
1,0,JAM1,1,1,NULL,(UBYTE *)"(De)SelectGadget->",NULL };
#define segd_ID 15
struct Gadget segd = {
&first_se,7,55,146,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&segd_bord,NULL,
&segd_text,NULL,NULL,segd_ID,NULL };
SHORT Gadget14_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget14_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget14_pairs,NULL };
#define Gadget14_ID 14
struct Gadget Gadget14 = {
&segd,281,41,36,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&Gadget14_bord,NULL,
NULL,NULL,NULL,Gadget14_ID,NULL };
SHORT Gadget13_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget13_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget13_pairs,NULL };
#define Gadget13_ID 13
struct Gadget Gadget13 = {
&Gadget14,240,41,36,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&Gadget13_bord,NULL,
NULL,NULL,NULL,Gadget13_ID,NULL };
SHORT Gadget12_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget12_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget12_pairs,NULL };
#define Gadget12_ID 12
struct Gadget Gadget12 = {
&Gadget13,199,41,36,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&Gadget12_bord,NULL,
NULL,NULL,NULL,Gadget12_ID,NULL };
SHORT first_on_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border first_on_bord = {
0,0,1,0,JAM1,5,(SHORT *)&first_on_pairs,NULL };
#define first_on_ID 11
struct Gadget first_on = {
&Gadget12,158,41,36,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&first_on_bord,NULL,
NULL,NULL,NULL,first_on_ID,NULL };
SHORT ongd_pairs[] = {
-1,-1,146,-1,146,10,-1,10,-1,-1 };
struct Border ongd_bord = {
0,0,1,0,JAM1,5,(SHORT *)&ongd_pairs,NULL };
struct IntuiText ongd_text = {
1,0,JAM1,2,1,NULL,(UBYTE *)"GadgetOn/Off ->",NULL };
#define ongd_ID 10
struct Gadget ongd = {
&first_on,7,41,146,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&ongd_bord,NULL,
&ongd_text,NULL,NULL,ongd_ID,NULL };
SHORT Gadget9_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget9_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget9_pairs,NULL };
#define Gadget9_ID 9
struct Gadget Gadget9 = {
&ongd,281,27,36,10,
GADGHCOMP,
TOGGLESELECT+RELVERIFY,
BOOLGADGET,
(APTR)&Gadget9_bord,NULL,
NULL,NULL,NULL,Gadget9_ID,NULL };
SHORT Gadget8_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget8_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget8_pairs,NULL };
#define Gadget8_ID 8
struct Gadget Gadget8 = {
&Gadget9,240,27,36,10,
GADGHCOMP,
TOGGLESELECT+RELVERIFY,
BOOLGADGET,
(APTR)&Gadget8_bord,NULL,
NULL,NULL,NULL,Gadget8_ID,NULL };
SHORT Gadget7_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget7_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget7_pairs,NULL };
#define Gadget7_ID 7
struct Gadget Gadget7 = {
&Gadget8,199,27,36,10,
GADGHCOMP,
TOGGLESELECT+RELVERIFY,
BOOLGADGET,
(APTR)&Gadget7_bord,NULL,
NULL,NULL,NULL,Gadget7_ID,NULL };
SHORT first_in_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border first_in_bord = {
0,0,1,0,JAM1,5,(SHORT *)&first_in_pairs,NULL };
#define first_in_ID 6
struct Gadget first_in = {
&Gadget7,158,27,36,10,
GADGHCOMP,
TOGGLESELECT+RELVERIFY,
BOOLGADGET,
(APTR)&first_in_bord,NULL,
NULL,NULL,NULL,first_in_ID,NULL };
SHORT mutin_pairs[] = {
-1,-1,146,-1,146,10,-1,10,-1,-1 };
struct Border mutin_bord = {
0,0,1,0,JAM1,5,(SHORT *)&mutin_pairs,NULL };
struct IntuiText mutin_text = {
1,0,JAM1,2,1,NULL,(UBYTE *)"MutualInclude ->",NULL };
#define mutin_ID 5
struct Gadget mutin = {
&first_in,7,27,146,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&mutin_bord,NULL,
&mutin_text,15L,NULL,mutin_ID,NULL };
SHORT Gadget4_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget4_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget4_pairs,NULL };
#define Gadget4_ID 4
struct Gadget Gadget4 = {
&mutin,281,13,36,10,
GADGHCOMP+SELECTED,
TOGGLESELECT+RELVERIFY,
BOOLGADGET,
(APTR)&Gadget4_bord,NULL,
NULL,NULL,NULL,Gadget4_ID,NULL };
SHORT Gadget3_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget3_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget3_pairs,NULL };
#define Gadget3_ID 3
struct Gadget Gadget3 = {
&Gadget4,240,13,36,10,
GADGHCOMP+SELECTED,
TOGGLESELECT+RELVERIFY,
BOOLGADGET,
(APTR)&Gadget3_bord,NULL,
NULL,NULL,NULL,Gadget3_ID,NULL };
SHORT Gadget2_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border Gadget2_bord = {
0,0,1,0,JAM1,5,(SHORT *)&Gadget2_pairs,NULL };
#define Gadget2_ID 2
struct Gadget Gadget2 = {
&Gadget3,199,13,36,10,
GADGHCOMP+SELECTED,
TOGGLESELECT+RELVERIFY,
BOOLGADGET,
(APTR)&Gadget2_bord,NULL,
NULL,NULL,NULL,Gadget2_ID,NULL };
SHORT first_ex_pairs[] = {
-1,-1,36,-1,36,10,-1,10,-1,-1 };
struct Border first_ex_bord = {
0,0,1,0,JAM1,5,(SHORT *)&first_ex_pairs,NULL };
#define first_ex_ID 1
struct Gadget first_ex = {
&Gadget2,158,13,36,10,
GADGHCOMP+SELECTED,
TOGGLESELECT+RELVERIFY,
BOOLGADGET,
(APTR)&first_ex_bord,NULL,
NULL,NULL,NULL,first_ex_ID,NULL };
SHORT mutex_pairs[] = {
-1,-1,146,-1,146,10,-1,10,-1,-1 };
struct Border mutex_bord = {
0,0,1,0,JAM1,5,(SHORT *)&mutex_pairs,NULL };
struct IntuiText mutex_text = {
1,0,JAM1,2,1,NULL,(UBYTE *)"MutualExclude ->",NULL };
#define mutex_ID 0
struct Gadget mutex = {
&first_ex,7,13,146,10,
GADGHCOMP,
RELVERIFY,
BOOLGADGET,
(APTR)&mutex_bord,NULL,
&mutex_text,15L,NULL,mutex_ID,NULL };
struct NewWindow DEMO_nw = {
124,35,324,97,0,1,
GADGETUP+CLOSEWINDOW,
WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+NOCAREREFRESH+SMART_REFRESH+ACTIVATE+RMBTRAP,
&mutex,NULL,
(UBYTE *)"GadgetDEMO 'tool.library'",NULL,NULL,
150,50,640,256,WBENCHSCREEN };
#define NEWWINDOW &DEMO_nw
#define FIRSTGADGET &mutex