Unexpected scrollbarDrag message
dunbarx at aol.com
dunbarx at aol.com
Wed May 22 18:51:11 EDT 2013
Peter.
So I made a new stack with a few scrollbars and sliders and a field. In the card script:
on scrollbarDrag
put the thumbPos of the target into fld "valueField"
end scrollbarDrag
Everything works fine when I drag the thumbs, and nothing happens no matter what I do to the field. What do you have different?
Craig
-----Original Message-----
From: Peter Haworth <pete at lcsql.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Wed, May 22, 2013 6:33 pm
Subject: Unexpected scrollbarDrag message
I have a card with a number of slider scrollbars on it and a scrollbarDrag
handler in the card script to deal what happens when any of the sliders are
moved. I also have a field associated with each scrollbar which receives
the thumbpos of its associated slider. All that works fine
However, if I click into the slider value field, my card level
scrollbardrag message is triggered with a value of 1. I also see that the
message is coming from the value field.
If I get rid of the scrollbardrag message at the card level and put it into
the script of each individual slider, the problem goes away. If I put a
scrollbardrag handler into the script of the value fields, it is triggered
as soon as I click into the field.
The value fields do not have any scrollbars enabled, do not have a behavior
script, and there are no other scripts in the messagepath between them and
the card.
I'm sure this is not an intended behavior?
Pete
lcSQL Software <http://www.lcsql.com>
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list