Re: mouseWithin and mouseLeave problem

2017-11-19 Thread Richmond Mathewson via use-livecode
http://forums.livecode.com/viewtopic.php?f=7&t=30180 Richmond. ___ 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/listin

Re: mouseWithin and mouseLeave problem

2017-11-17 Thread Mike Bonner via use-livecode
To set a scrollbar to vertical, make it taller than it is wide. On Fri, Nov 17, 2017 at 3:26 PM, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: > > > On 18/11/17 12:05 am, Kaveh Bazargan via use-livecode wrote: > >> Hi Bob >> >> Guess what. MouseRelease works if you c

Re: mouseWithin and mouseLeave problem

2017-11-17 Thread Richmond Mathewson via use-livecode
On 18/11/17 12:05 am, Kaveh Bazargan via use-livecode wrote: Hi Bob Guess what. MouseRelease works if you click either side of the thumbposition, but not if you click the thumb itself. Looking for another handler for that. Not all that surprising given this from the documentation: "Sent whe

Re: mouseWithin and mouseLeave problem

2017-11-17 Thread Kaveh Bazargan via use-livecode
Hi Bob Guess what. MouseRelease works if you click either side of the thumbposition, but not if you click the thumb itself. Looking for another handler for that. Could there be a more elegant solution? Something like a property or behavior that resets a scrollbar to its normal size if it is not

Re: mouseWithin and mouseLeave problem

2017-11-16 Thread Richmond Mathewson via use-livecode
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

Re: mouseWithin and mouseLeave problem

2017-11-15 Thread Tore Nilsen via use-livecode
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. 20

Re: mouseWithin and mouseLeave problem

2017-11-15 Thread Richmond Mathewson via use-livecode
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

Re: mouseWithin and mouseLeave problem

2017-11-15 Thread Kaveh Bazargan via use-livecode
Thanks bob. I replied to your first response. Mouserelease sounds good. I didn't know if it and will try later. On Wed, 15 Nov 2017 at 17:53, Kaveh Bazargan < ka...@rivervalleytechnologies.com> wrote: > No :-( > > On 15 November 2017 at 17:48, Bob Sneidar via use-livecode < > use-livecode@lists.r

Re: mouseWithin and mouseLeave problem

2017-11-15 Thread Kaveh Bazargan via use-livecode
No :-( On 15 November 2017 at 17:48, Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Does mouseUp get sent to the control when you release the thumb pointer? > > Bob S > > > > On Nov 15, 2017, at 09:36 , Kaveh Bazargan via use-livecode < > use-livecode@lists.runrev.com> wro

Re: mouseWithin and mouseLeave problem

2017-11-15 Thread Mike Bonner via use-livecode
Look at mouserelease.. it should be sent to the scrollbar control if the mouse is released outside the control area, so you should be able to use the mouserelease message to reset your scrollbar to small size. On Wed, Nov 15, 2017 at 10:36 AM, Kaveh Bazargan via use-livecode < use-livecode@lists.

Re: mouseWithin and mouseLeave problem

2017-11-15 Thread Bob Sneidar via use-livecode
Does mouseUp get sent to the control when you release the thumb pointer? Bob S > On Nov 15, 2017, at 09:36 , Kaveh Bazargan via use-livecode > wrote: > > I have a set of scrollbars that are normally small, to preserve screen > space. But I want them to expand when mouse enters, so give finer