Dr. Vesselin Bontchev wrote:

Nahh. The cost of saving two values is minimal - just another 16-bit number, 
plus a few more bytes of code to initialize it (if the saved preferences don't 
exist yet) and to keep it up-to-date.

If I do as you suggest, it's not the selection that will change (because that will be remembered) - it's the picture of the list on the screen that will change (as the selection is re-centered). That could be annoying and since the cost of fixing it is minimal anyway, I'd prefer to do it the way I described. (Actually I've already done it.)


You are right that it's a small point. When I initialize any form with popup lists, I always scroll the list so that the initial selection is visible. Instead of saving ALL of those top-of-list values I just make the top-of-list 4 less than the selection. That is done in a generic 'myLstSetSelection' function, which sets the selection AND top-of-list at the same time. Your way would work fine too. Bob.

--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to