I was wondering...

Do you know about "WINDOW WINSTART"???

If not, do a search in the manual...and, check it out...
In your main code file, it is at line 155
I spent a lot of time getting that to work the way that I wanted...
There is a bunch of tricks to using it...