I tried all of those combinations but nothing is returned from either the scrollbar or the textbox.
I had to do it the long-winded way using a pen and paper and some calculations -
Code:
<include name="ArrowUpVisible">
<visible>StringCompare(System.CurrentControl,1/10) | StringCompare(System.CurrentControl,2/11) | StringCompare(System.CurrentControl,3/12) | StringCompare(System.CurrentControl,4/13) | StringCompare(System.CurrentControl,5/14) | StringCompare(System.CurrentControl,6/15) | StringCompare(System.CurrentControl,7/16) | StringCompare(System.CurrentControl,8/17) | StringCompare(System.CurrentControl,9/18) | StringCompare(System.CurrentControl,9/19) | StringCompare(System.CurrentControl,9/20) | StringCompare(System.CurrentControl,9/21) | StringCompare(System.CurrentControl,9/22) | StringCompare(System.CurrentControl,9/23) | StringCompare(System.CurrentControl,9/24) | StringCompare(System.CurrentControl,9/25) | StringCompare(System.CurrentControl,9/26) | StringCompare(System.CurrentControl,9/27) | StringCompare(System.CurrentControl,0/18) | StringCompare(System.CurrentControl,10/19) | StringCompare(System.CurrentControl,1/19) | StringCompare(System.CurrentControl,11/20) | StringCompare(System.CurrentControl,2/20) | StringCompare(System.CurrentControl,12/21) | StringCompare(System.CurrentControl,3/21) | StringCompare(System.CurrentControl,13/22) | StringCompare(System.CurrentControl,4/22) | StringCompare(System.CurrentControl,14/23) | StringCompare(System.CurrentControl,5/23) | StringCompare(System.CurrentControl,15/24) | StringCompare(System.CurrentControl,6/24) | StringCompare(System.CurrentControl,16/25) | StringCompare(System.CurrentControl,7/25) | StringCompare(System.CurrentControl,17/26) | StringCompare(System.CurrentControl,8/26) | StringCompare(System.CurrentControl,18/27) | StringCompare(System.CurrentControl,9/27)</visible>
</include>
<include name="ArrowDownVisible">
<visible>StringCompare(System.CurrentControl,0/10) | StringCompare(System.CurrentControl,0/11) | StringCompare(System.CurrentControl,0/12) | StringCompare(System.CurrentControl,0/13) | StringCompare(System.CurrentControl,0/14) | StringCompare(System.CurrentControl,0/16) | StringCompare(System.CurrentControl,0/17) | StringCompare(System.CurrentControl,0/18) | StringCompare(System.CurrentControl,9/18) | StringCompare(System.CurrentControl,0/19) | StringCompare(System.CurrentControl,1/19) | StringCompare(System.CurrentControl,9/19) | StringCompare(System.CurrentControl,0/20) | StringCompare(System.CurrentControl,2/20) | StringCompare(System.CurrentControl,9/20) | StringCompare(System.CurrentControl,0/21) | StringCompare(System.CurrentControl,3/21) | StringCompare(System.CurrentControl,9/21) | StringCompare(System.CurrentControl,0/22) | StringCompare(System.CurrentControl,4/22) | StringCompare(System.CurrentControl,9/22) | StringCompare(System.CurrentControl,0/23) | StringCompare(System.CurrentControl,5/23) | StringCompare(System.CurrentControl,9/23) | StringCompare(System.CurrentControl,0/24) | StringCompare(System.CurrentControl,6/24) | StringCompare(System.CurrentControl,9/24) | StringCompare(System.CurrentControl,0/25) | StringCompare(System.CurrentControl,7/25) | StringCompare(System.CurrentControl,9/25) | StringCompare(System.CurrentControl,0/26) | StringCompare(System.CurrentControl,8/26) | StringCompare(System.CurrentControl,9/26) | StringCompare(System.CurrentControl,0/27) | StringCompare(System.CurrentControl,9/27)</visible>
</include>
This covers me up to 27 lines (the max I found was 22) but I still think we should be able to use HasNext and HasPrevious for scrollbars.