Stranger and stranger. I have disabled all timers (which I use for scrolling) and the problems still persist.
I noticed that the files first appear in the correct position, scrolled to the top, and then scroll down (instantly) after about 1/2 second. It is as if a timer went off after 1/2 second, but there are no timers to do the scrolling.
I've also noticed that some files scroll to the end while others just scroll 1/2 of a line height. Yeah. Right. This is reproducible, as if the TMemo is displaying different files differently based on content or file name. Clearly, I cannot have written such complex code by accident and then not noticed it while debugging recently.
And, it was working just fine a month ago. Of course, by now, with all of my flailing, the code is not precisely as it was a month ago.
I have attached a ZIP with some files. I hope I have provided the right files for someone to compile my program: if not, please ask for what you need. I have also included two TXT files that you should put in your Documents folder. Those files should be visible if you tap on the Open button. If I open the Jolene file here, it scrolls to the end; if I open the Honky Tonk Blues file here, it scrolls down 1/2 of a line. When I tap on Prev or Next, the files open without scrolling.
The program was written as a quick hack. The "buttons" just look like words across the top of the screen.
JLBPrompter.zip