home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
fish
/
text
/
editors
/
'liner_394
/
source
/
colorwdw.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-10-28
|
2KB
|
193 lines
SHORT BorderVectors1[] = {
0,0,
50,0,
50,11,
0,11,
0,1
};
struct Border Border1 = {
-1,-1,
1,0,JAM1,
5,
BorderVectors1,
NULL
};
struct IntuiText IText1 = {
1,0,JAM1,
5,1,
NULL,
"Reset",
NULL
};
struct Gadget Reset = {
NULL,
276,54,
49,10,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border1,
NULL,
&IText1,
NULL,
NULL,
5,
NULL
};
struct Gadget ColorBar = {
&Reset,
9,53,
256,12,
GADGHBOX+GADGHIMAGE,
GADGIMMEDIATE,
BOOLGADGET,
NULL,
NULL,
NULL,
NULL,
NULL,
4,
NULL
};
struct PropInfo BlueSliderSInfo = {
AUTOKNOB+FREEHORIZ,
0,-1,
4095,-1,
};
struct Image Image1 = {
0,0,
12,7,
0,
NULL,
0x0000,0x0000,
NULL
};
struct Gadget BlueSlider = {
&ColorBar,
35,37,
192,11,
NULL,
FOLLOWMOUSE|GADGIMMEDIATE,
PROPGADGET,
(APTR)&Image1,
NULL,
NULL,
NULL,
(APTR)&BlueSliderSInfo,
3,
NULL
};
struct PropInfo GreenSliderSInfo = {
AUTOKNOB+FREEHORIZ,
0,-1,
4095,-1,
};
struct Image Image2 = {
0,0,
12,7,
0,
NULL,
0x0000,0x0000,
NULL
};
struct Gadget GreenSlider = {
&BlueSlider,
35,27,
192,11,
NULL,
FOLLOWMOUSE|GADGIMMEDIATE,
PROPGADGET,
(APTR)&Image2,
NULL,
NULL,
NULL,
(APTR)&GreenSliderSInfo,
2,
NULL
};
struct PropInfo RedSliderSInfo = {
AUTOKNOB+FREEHORIZ,
0,-1,
4095,-1,
};
struct Image Image3 = {
0,0,
12,7,
0,
NULL,
0x0000,0x0000,
NULL
};
struct Gadget RedSlider = {
&GreenSlider,
35,17,
192,11,
NULL,
FOLLOWMOUSE|GADGIMMEDIATE,
PROPGADGET,
(APTR)&Image3,
NULL,
NULL,
NULL,
(APTR)&RedSliderSInfo,
1,
NULL
};
#define GadgetList1 RedSlider
struct IntuiText IText4 = {
1,0,JAM1,
236,39,
NULL,
"Blue",
NULL
};
struct IntuiText IText3 = {
1,0,JAM1,
236,29,
NULL,
"Green",
&IText4
};
struct IntuiText IText2 = {
1,0,JAM1,
236,19,
NULL,
"Red",
&IText3
};
#define IntuiTextList1 IText2
struct NewWindow NewWindowStructure1 = {
287,22,
335,70,
0,1,
MOUSEMOVE+GADGETDOWN+CLOSEWINDOW+GADGETUP,
WINDOWDRAG+WINDOWCLOSE+ACTIVATE,
&RedSlider,
NULL,
"Pick your colors:",
NULL,
NULL,
5,5,
640,200,
CUSTOMSCREEN
};