Determining which scrollbar was scrolled in a field with both H and V scrollbars
Björnke von Gierke
bvg at mac.com
Tue Jun 9 08:33:27 CDT 2009
It's not perfect, but will give you a proper result, i think.
on scrollbarDrag --theDrag --param not sent for fields, evil
if the vScroll of me = the PrevScrollV of me
put true into vScrolled
put false into vScrolled
if the hScroll of me = the PrevScrollH of me
put true into hScrolled
put false into hScrolled
set the prevScrollV of me to the vScroll of me
set the prevScrollH of me to the hScroll of me
On 4 Jun 2009, at 17:18, Paul Dupuis wrote:
> This may be a dumb question, but does anyone know of a way to
> determine which scrollbar (horizontal or vertical) was scrolled in a
> field with both a horizontal and vertical scrollbar when the
> scrollBarDrag message (or any of the scrollBar* messages) are sent
> to that field?
official ChatRev page:
Chat with other RunRev developers:
go stack URL "http://bjoernke.com/stacks/chatrev/chatrev1.3b3.rev"
More information about the use-livecode