I have a txt file, where i divided it by lines. each line may different in length.
made a simple text object, and added a max Width to it.
so, every time a different line is being random selected it may or may not need a scroll, so i have added a side bar with a little button to make it scroll.
and i want all scrolls to be the same, meaning, if i have a crop square of that text i want that the top line and the bottom line will always be at the same spot in case of scrolling it.
using TextY manipulation, TextTotalHeight, and obviously the the ScreenHeight(as the side bar where the scroll button appears is trough all the screen height) , and the position of the ScrollButton.
Wow for the past 2 days i have tried everything to make it work. like any combination of known(to me) mathematics but it just dose not seems to work. and i really do not want to separate it to "Lines" because i might want to enter some Pictures PDF style when than i will need to come back to TextTotalHeight or ImageTotalHeight...
so for the example, lets say the current text written inside the Text Object (with the width restrictions) makes it 100 lines so about 1000 height. and next time it will be 57 lines so about 570 in TotalTextHeight , if i scroll it i want both scrolls to stop at the same place at the bottom inside the cropped text area. i have seen an example of Baxslash but there he divide the text into lines which may not be good later on.
Thank you for your time, Nadav aka Haliop.
p.s
I Hope everything is OK with you guys, all around the World. (its been a while since I've been in the forum)