scrollbarDrag question...

J. Landman Gay jacque at hyperactivesw.com
Fri Mar 31 00:09:48 EST 2006


Richard Gaskin wrote:
> J. Landman Gay wrote:
> 
>> Garrett Hylltun wrote:
>>
>>> I have a field with the "dontWrap" set to true, so both horizontal 
>>> and vertical scrollbars are available to the field.
>>>
>>> In using the scrollbarDrag message, I found that both horz and vert 
>>> scrollbars send the message and I have no way to differentiate 
>>> between the two.
>>>
>>> Is there a way to find out which scrollbar sent the message?
>>
>>
>> Try checking "the target".
> 
> 
> Unfortunately "the target" only returns a reference to the field; 
> scrollbars attached to a field are not addressible as distinct objects.

Oops, I misread the question; I automatically assumed separate scrollbar 
objects. You are right, of course. My flawed assumption is the 
workaround for now though: construct a group with a field and two 
scrollbar objects. Ugly, yes.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the Use-livecode mailing list