Use of page.gadget

3 posts / 0 new
Last post
OldFart
OldFart's picture
Offline
Last seen: 2 weeks 2 days ago
Joined: 2010-11-30 14:09
Use of page.gadget

Hi,

Is it possible to add a page to the the page layout at the head of its list? Looking at tag 'PAGE_Add' it states the the new page is added to the end:

PAGE_Add (Object *)
A BOOPSI gadget (probably a layout.gadget) to add to the end of
the page list.

OldFart

jabirulo
jabirulo's picture
Offline
Last seen: 4 hours 51 min ago
Joined: 2013-05-30 00:53
Re: Use of page.gadget

IClickTab->AllocClickTabNode(
CLICKTAB_Labels, *labelslist,
TNA_Number, i,
TNA_Enabled, TRUE,
TAG_DONE));

but you need to "reorder" page objects too (PAGE_CurrentObject), seems too much code (re)work.

AOS4.1/SAM460ex/PPC460EX-1155MHZ/2048MB/RadeonRX550/SSD240GB/DVDRW :-P

OldFart
OldFart's picture
Offline
Last seen: 2 weeks 2 days ago
Joined: 2010-11-30 14:09
Re: Use of page.gadget

Hi,

Thanks for the information, but I do know how to connect ClickTab and Page gadgets.

I want to add the pages at front so as to sync with the labels of a Chooser (in drop down mode).

It is meant that new Chooser labels are added to the head of its labellist. Adding pages at the end of their respective list causes a mismatch and, as a result, a whole lot of awkward coding, which is why I want to add Pages at the head of the list.

The method I now have in mind is to remove the Pages from the Layout one by one and temporarily 'park' them in a separate list. Then add the new page to the Layout and subsequently move the parked Page nodes over to the Layout, where they will be appended to the end. This thus results in a Page list starting with the last 'newly' added page.
Tag PAGE_NoDispose needs to be set to TRUE for this to work.

OldFart

Log in or register to post comments