mouseWithin and mouseLeave problem
Richmond Mathewson
richmondmathewson at gmail.com
Thu Nov 16 13:25:21 EST 2017
Good point.
Richmond.
On 16/11/17 12:22 am, Tore Nilsen via use-livecode wrote:
> But Alejandros script also works when you have scrolled up or down and release the mouse outside of the scrollbar without moving the cursor into the field area first. . Otherwise width of the scrollbar would have stayed at 30 until next time the field received a mouseLeave message
>
>> 15. nov. 2017 kl. 22:46 skrev Richmond Mathewson via use-livecode <use-livecode at lists.runrev.com>:
>>
>> I think you are over-complicating things as this works perfectly:
>>
>> onmouseEnter
>> setthescrollBarWidthofmeto120
>> endmouseEnter
>>
>> onmouseLeave
>> setthescrollBarWidthofmeto0
>> endmouseLeave
>>
>> Richmond.
>>
>>
>> On 15/11/17 11:05 pm, Alejandro Tejada via use-livecode wrote:
>>> Today, while trying to understand why my own code does not work, I
>>> learned about the text field scrollbarWidth property. :-)
>>>
>>> 1) create a new stack
>>> 2) create/insert/drag and drop a scrolling text field in this new stack
>>> 3) edit the text field script and insert these handlers:
>>>
>>> -- ---------------------------------------------------------
>>> on mouseenter
>>> set the scrollbarwidth of fld 1 to 30
>>> end mouseenter
>>>
>>> on mouseleave
>>> mouserelease
>>> end mouseleave
>>>
>>> on mouserelease
>>> set the scrollbarwidth of fld 1 to 10
>>> end mouserelease
>>>
>>> -- ----------------------------------------------------
>>>
>>> By the way, Which are the minimum and maximum
>>> scrollbar width size allowed in every platform?
>>> LC Dictionary mentions Mac OSX, but does not
>>> specify scrollbar widths limitations.
>>>
>>> Al
>>>
>>> _______________________________________________
>>> 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
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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