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
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
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