A somewhat complicated select and compair routine could probably be written to derive the proper numbering on first window open. It would also safeguard against future menu changes but might add to the initial Market window lag.
It would work something like this...
On initial window open, iterate over the menu's data source doing text compairs to extract the index number of matches and assign those to variables.
Rewrite your menu selector code to use the derived variables rather than preset numbers.
You still have to localize your favorites and the comparison strings, but order wont be an issue.
|