2017년 3월 26일 일요일

Scroll the scrollable arrangements (to bottom/top) using a block


Is there a way to scroll the the scrollable arrangements using blocks?  If a scrollable vertical arrangement contains a label that fills its parent, as new lines of text are added to the label, they can be off-screen and it would be nice to scroll to the bottom automatically.

Thanks if you know of a way...

--
If all you want to scroll is the text in the label,
you can use the trick in this Gallery sample:

The label seems to scroll under the control of the dragged ball in
the thin canvas at its right, but behind the scenes the label.Text 
is having its front removed using a segment() block.

Estimate how many bytes can be displayed in your label, and use that number
for your initial drag simulation setting.






-- 
Here is a very crude example of using a label (lbPump) to move a set of labels up and down inside a normal vertical arrangement. You would need to adjust the lbPump and label values to suit your requirements


-- 

댓글 없음:

댓글 쓰기