I plan on using a page gadget in an application and happen to grasp the inner workings of that gadget somehow.
What I would like to know, whether there is a method of retrieving a page's index, when that is not known from its address, by comparing that address with some internal list or array, until a match is found. Does layout.gadget maintain such a list or array?
Point is that two gadgets are somehow linked to eachother: one being a list, the other the page.gadget. Problem is that the sequence of entries in the list does not neccessarilly correspond with the sequence of pages in the page.gadget (due to some uncertain circumstances). It would even be a rather strange and noteworthy coincedence if it would.
What's more: entries from the list can be deleted and so should the corresponding page. Evenso: entries can be added to the list and a corresponding page need to be added. Due to the nature of the list entries, the pages need NOT be added in exactly the same sequence!
Ending up like this:
entry -- page
Is there somewhere some kind of an 'entry point' for the pages, from which by comparison of addresses the corresponding page index can be retrieved?