I'm using the Reactor GUI builder,and I can get it to sucessfully open a window. How can I remove/add my gadget list to that window? If I use AddGList() or RemoveGList(), it doesnt affect the display at all.. I can get it to use my GUI using the "WINDOW_Layout" setting in Reactor, however, I want to be able to have multiple gadget lists, and be able to change it at various times.
Heres the relevant parts of my code (bits and pieces).. ATM I'm attempting to use SetAttrs() to set the gadget list for my Window..
Object *GlbWindowP;
struct Window *GlbIWindowP;
struct Gadget **GlbGadgetsP;
if(GlbWindowP = RL_NewObject(GlbResourceP,WIN_1_ID,
WINDOW_SharedPort,GlbIDCMPortP,
WINDOW_AppPort,GlbAppPortP,
TAG_END)) {
GlbGadgetsP = (struct Gadget **) RL_GetObjectArray(GlbResourceP,GlbWindowP,GROUP_2_ID);
SetAttrs(GlbWindowP, WINDOW_Layout, *GlbGadgetsP);
DoMethod(GlbWindowP,WM_OPEN);
}
And heres how I was using AddGList and RemoveGList originally.. Just to clarify, when using these functions, it will not add or remove my gadgets.. when the window opens it is empty.
AddGList((struct Window*)GlbWindowP, *GlbGadgetsP, -1, -1, NULL);
//RemoveGList((struct Window*)GlbWindowP, *GlbGadgetsP, -1);
RefreshGList(*GlbGadgetsP,(struct Window*)GlbWindowP, NULL, -1);