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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to