Welcome, Guest. Please login or register.

Author Topic: Reaction: Adding/removing layout gadgets to Windows  (Read 2422 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Highflyer

  • Newbie
  • *
  • Join Date: Mar 2002
  • Posts: 14
    • Show all replies
Re: Reaction: Adding/removing layout gadgets to Windows
« on: July 04, 2003, 09:40:18 AM »
try this, that's not exactly the same problem but should give you ideas. (try also asking on news:comp.sys.amiga.programmer for more advices, that's where I got this answer)

> Use a PageObject, see page_gc.doc, ClassActDemo.c for an example. But
> switching pages with Set(Page)GadgetAttrs() is broken in ReAction, use
>
> struct TagItem tlist[] =
> {
>    {PAGE_Current, page_number},
>    {TAG_DONE, 0}
> };
> DoGadgetMethod((struct Gadget *)pageobj, window, NULL, OM_UPDATE, (ULONG)tl
> ist, NULL, 0L);
>
> instead.