Trapping Horizontal Scrolling

Bruce Noble

New Member
I have used the SCROLL-HORIZONTAL trigger to trap when the user scrolls in a browse horizontally. The problem I have is that I don't see any way to know "which way" (left or right) the user scrolled. If you can't tell this, of what value is this trigger? I'd like to be able to act on objects outside of the browse, based on the user's action.
I have looked for methods that inform as to which columns are in the viewport, and haven't found anything there, either.

Any tips would be gratefully appreciated!
 
Hi Bruce
A trick might be to store and test the value of the X attribute of any column. If it increases, the user is scrolling to the left. If it decreases, the user is scrolling to the right.
<code>
IF {&browse-name}:get-browse-column(1):X ...
</code>
 
Thanks Oli. Since posting, I did find that the X value of the column changes with scrolling. In fact, I didn't need to store it and compare. I just wanted to display columnar totals with dynamic objects outside of the browse. All I needed to do was to align a column total with the browse column, so I just tested the X value of the column which is < 0 if the object is scrolled out of the viewport to the left. I also, of course, had to test if the X value is beyond the frame's confines to the right. I just had to be able to know which totals should have their display suppressed due to boundary constraints. Thanks again!
 
Back
Top