vscroll not being updated thro handler
Posted: Thu Jan 17, 2019 10:25 am
Hi Folks
My second post on scrolling in 24 hours!
I have a handler that acts on a field. At the start it reads the current vscroll and resets it at end, so
But, when the handler finishes, the field is always at vscroll of 0. I have tried "wait 10 ticks", locking or unlocking screen, and also putting the resetting of scroll in another handler, so:
end correct_scroll[/code]
But still not working. I note that if I put
just before setting the vscroll, then it does work.
Any hints as to what is happening? I do have other things going on in the stack but I can't pin down the problem.
Any advanced ways of debugging, e.g. to see what messages are being seen by the field?
Thank
Kaveh
My second post on scrolling in 24 hours!
I have a handler that acts on a field. At the start it reads the current vscroll and resets it at end, so
Code: Select all
put the vscroll of fld "text" to tScroll
... [modify text]
set the vscroll of fld "text" to tScroll
Code: Select all
put the vscroll of fld "text" to tScroll
... [modify text]
send correct_scroll to me in 10 ticks
...
on correct_scroll
set the vscroll of fld "text" to tScroll
But still not working. I note that if I put
Code: Select all
answer tScroll
Any hints as to what is happening? I do have other things going on in the stack but I can't pin down the problem.
Any advanced ways of debugging, e.g. to see what messages are being seen by the field?
Thank
Kaveh