home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Audio 4.94 - Over 11,000 Files
/
audio-11000.iso
/
amiga
/
midi
/
mstuffpr.zoo
/
MIDIstuff
/
src
/
ClockPOW.c
next >
Wrap
C/C++ Source or Header
|
1990-06-30
|
2KB
|
188 lines
struct PropInfo Gadget4SInfo = {
AUTOKNOB+FREEHORIZ,
-31007,-1,
327,-1,
};
struct Image Image1 = {
49,0,
6,12,
0,
NULL,
0x0000,0x0000,
NULL
};
struct IntuiText IText1 = {
3,0,JAM2,
7,4,
NULL,
(UBYTE *)"Speed",
NULL
};
struct Gadget Gadget4 = {
NULL,
187,12,
107,16,
GADGHBOX+GADGHIMAGE,
RELVERIFY,
PROPGADGET,
(APTR)&Image1,
NULL,
&IText1,
NULL,
(APTR)&Gadget4SInfo,
NULL,
NULL
};
SHORT BorderVectors1[] = {
0,0,
53,0,
53,17,
0,17,
0,0
};
struct Border Border1 = {
-2,-1,
3,0,JAM1,
5,
BorderVectors1,
NULL
};
struct IntuiText IText4 = {
2,0,JAM2,
108,4,
NULL,
(UBYTE *)"Continue",
NULL
};
struct IntuiText IText3 = {
2,0,JAM2,
60,4,
NULL,
(UBYTE *)"Stop",
&IText4
};
struct IntuiText IText2 = {
2,0,JAM2,
4,4,
NULL,
(UBYTE *)"Start",
&IText3
};
struct Gadget g_Start = {
&Gadget4,
6,12,
50,16,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border1,
NULL,
&IText2,
NULL,
NULL,
NULL,
NULL
};
SHORT BorderVectors2[] = {
0,0,
77,0,
77,17,
0,17,
0,0
};
struct Border Border2 = {
-2,-1,
3,0,JAM1,
5,
BorderVectors2,
NULL
};
struct Gadget g_Continue = {
&g_Start,
109,12,
74,16,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border2,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
};
SHORT BorderVectors3[] = {
0,0,
44,0,
44,17,
0,17,
0,0
};
struct Border Border3 = {
-2,-1,
3,0,JAM1,
5,
BorderVectors3,
NULL
};
struct Gadget g_Stop = {
&g_Continue,
62,12,
41,16,
NULL,
RELVERIFY,
BOOLGADGET,
(APTR)&Border3,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
};
#define GadgetList1 g_Stop
struct NewWindow NewWindowStructure1 = {
189,50,
300,31,
0,2,
GADGETUP+CLOSEWINDOW,
WINDOWDRAG+WINDOWCLOSE,
&g_Stop,
NULL,
(UBYTE *)" MIDI Clock Generator ",
NULL,
NULL,
5,5,
640,200,
WBENCHSCREEN
};
void HandleEvent(object)
APTR object;
{
if (object == (APTR)&g_Stop) { Stop(object); return; }
if (object == (APTR)&g_Continue) { Continue(object); return; }
if (object == (APTR)&g_Start) { Start(object); return; }
if (object == (APTR)&Gadget4) { NewSpeed(object); return; }
}
#define HANDLEEVENT HandleEvent
/* end of PowerWindows source generation */