On Mon, Oct 28, 2002 at 12:48:31PM +0900, masakazu wrote: > I'd like libraryform to show the last view when it is opened, but in > the main-trunk viewer, it always goes to top line of the list. I don't > know how it works on devices with jog dial, but at least on my TRGpro, > I have to press down key many times when I close a document and go to > next document. > > May I move firstVisibleRow variable to Preference and remove > "firstVisibleRow=0" in LibraryFormInit()??
firstVisibleRow needs to be initialized at one point. The problem is with it is that its general enough for all categories. So for example if you change it to a preference, and keep the value saved; if the user views one category, then changes/deletes files/categories and goes back, some how that value needs to be kept intact and valid at all times. Otherwise some unexpected things may happen. I'd recommend just keeping it under init, but if you can find another way to do this while keeping your feature request, be sure it takes into account a validation of the value, and making it reset itself back to zero if its found to be bad/dirty. -- Adam McDaniel Array.org Calgary, AB, Canada
msg03804/pgp00000.pgp
Description: PGP signature
