4 ** GUI-Source. Created with BGUIBuilder V1.0
7 #ifndef LIBRARIES_BGUI_H
8 #include <libraries/bgui.h>
11 #ifndef LIBRARIES_BGUI_MACROS_H
12 #include <libraries/bgui_macros.h>
16 #include <proto/bgui.h>
19 #include <proto/intuition.h>
20 #include <proto/exec.h>
21 #include <gadgets/gradientslider.h>
25 struct Library
*BGUIBase
=NULL
;
26 struct IntuitionBase
* IntuitionBase
;
30 WIN4_MASTER
, WIN4_GRSLIDER1
,
35 Object
*Test_4Objs
[WIN4_NUMGADS
];
38 ** Ensure correct operation on ECS.
42 static WORD penns
[ GRADCOLORS
+ 1 ] =
47 Object
*InitTest_4( void )
50 Object
**ar
= Test_4Objs
;
53 WINDOW_SmartRefresh
, TRUE
,
54 WINDOW_AutoAspect
, TRUE
,
55 WINDOW_MasterGroup
, ar
[WIN4_MASTER
] = VGroupObject
,
58 StartMember
, ar
[WIN4_GRSLIDER1
]= ExternalObject
,
61 EXT_ClassID
, "gradientslider.gadget",
64 PGA_Freedom
, LORIENT_VERT
,
65 GA_ID
, WIN4_GRSLIDER1
,
77 struct Library
*GradientSliderBase
;
79 if (NULL
== (IntuitionBase
= (struct IntuitionBase
*)OpenLibrary("intuition.library",0)))
81 printf("Could not open Intuition.library!\n");
85 if(BGUIBase
=OpenLibrary(BGUINAME
,BGUIVERSION
))
87 printf("trying to open gradientslider.gadget\n");
88 if(GradientSliderBase
=OpenLibrary("Gadgets/gradientslider.gadget",39L))
90 printf("opened gradientslider.gadget\n");
91 if((window
=InitTest_4())!=NULL
92 && WindowOpen(window
)!=NULL
)
96 if(GetAttr(WINDOW_SigMask
,window
,&signal
)
102 switch(HandleEvent(window
))
104 case WMHI_CLOSEWINDOW
:
113 DisposeObject(window
);
115 CloseLibrary(GradientSliderBase
);
117 CloseLibrary(BGUIBase
);
120 CloseLibrary((struct Library
*)IntuitionBase
);