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

mouseWithin and mouseLeave problem

2017-11-15 Thread Alejandro Tejada via use-livecode
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: -- --

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

mouseWithin and mouseLeave problem

2017-11-15 Thread Kaveh Bazargan via use-livecode
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 control, then to shrink again when mouse leaves. I have managed to do this with mouseEnter and mouseLeave. Problem is that if I drag the thumb pointer with mouse

Re: mouseLeave mouseWithin - iOS

2013-07-05 Thread Mike Kerner
Also, don't forget about mouseEnter, and how could I forget the touch events (touchStart, touchRelease, touchMove, touchEnd) On Fri, Jul 5, 2013 at 8:04 AM, Mike Kerner wrote: > John, > According to the docs, yes, however the docs also note that mouseWithin is > sent continuo

Re: mouseLeave mouseWithin - iOS

2013-07-05 Thread Mike Kerner
John, According to the docs, yes, however the docs also note that mouseWithin is sent continuously while the object has the touch, so mouseMove is more efficient. On Fri, Jul 5, 2013 at 3:13 AM, Jim Sims wrote: > I don't have what I need to test this so I am asking here. > > D

mouseLeave mouseWithin - iOS

2013-07-05 Thread Jim Sims
I don't have what I need to test this so I am asking here. Does mouseLeave and mouseWithin work with iOS? If you run your finger over a set of buttons do they change with mouseLeave and mouseWithin or does one need tap? sims ___ use-liv

Re: MouseWithin

2012-06-25 Thread Klaus on-rev
Hi Bob, Am 25.06.2012 um 18:35 schrieb Bob Sneidar: > I have read in another post that you can vastly improve the performance of > the mouseTrap function by issuing "set catnap to true". :-D :-D :-D > Bob Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com _

Re: MouseWithin

2012-06-25 Thread Bob Sneidar
rom: Peter Haworth >> To: How to use LiveCode >> Sent: Sat, Jun 23, 2012 6:01 pm >> Subject: Re: MouseWithin >> >> >> Hi Craig, >> I'm actually using the mouseLine function in my mouseWithin handler. Since >> I wrote my email, I found that I ca

Re: MouseWithin

2012-06-25 Thread Bob Sneidar
I hide my behavior buttons and access the scripts via the Application Browser. Bob On Jun 23, 2012, at 3:33 PM, Peter Haworth wrote: > Thanks Richard. As noted in my reply to Craig, I found a solution by using > mouseMove in the behavior instead of mouseWithin. There is still an >

Re: MouseWithin

2012-06-25 Thread Bob Sneidar
Try creating a mouseWithin handler in both the table control and the behavior button and put a breakpoint at the beginning of each. See which fires first. Bob On Jun 23, 2012, at 12:59 PM, Peter Haworth wrote: > It would appear that a mouseWithin handler can't be used in a behavior

Re: MouseWithin

2012-06-23 Thread Peter Haworth
-- > From: Peter Haworth > To: How to use LiveCode > Sent: Sat, Jun 23, 2012 6:01 pm > Subject: Re: MouseWithin > > > Hi Craig, > I'm actually using the mouseLine function in my mouseWithin handler. Since > I wrote my email, I found that I can use the mouseM

Re: MouseWithin

2012-06-23 Thread dunbarx
What? No mouseHover? I meant mouseLurk. Craig -Original Message- From: Peter Haworth To: How to use LiveCode Sent: Sat, Jun 23, 2012 6:01 pm Subject: Re: MouseWithin Hi Craig, I'm actually using the mouseLine function in my mouseWithin handler. Since I wrote my email, I

Re: MouseWithin

2012-06-23 Thread Peter Haworth
> > > Thanks Richard. As noted in my reply to Craig, I found a solution by > using > > mouseMove in the behavior instead of mouseWithin. There is still an > > anomaly though in that the mouseMove handler fires when the mouse is over > > the button containing the behavi

Re: MouseWithin

2012-06-23 Thread Mike Bonner
Disable the button and you won't have to worry about it. On Sat, Jun 23, 2012 at 4:33 PM, Peter Haworth wrote: > Thanks Richard. As noted in my reply to Craig, I found a solution by using > mouseMove in the behavior instead of mouseWithin. There is still an > anomaly thou

Re: MouseWithin

2012-06-23 Thread Peter Haworth
Thanks Richard. As noted in my reply to Craig, I found a solution by using mouseMove in the behavior instead of mouseWithin. There is still an anomaly though in that the mouseMove handler fires when the mouse is over the button containing the behavior script so I had to take steps to avoid that

Re: MouseWithin

2012-06-23 Thread Richard Gaskin
Peter Haworth wrote: It would appear that a mouseWithin handler can't be used in a behavior script? The mouseWithin message seems to be sent to the button containing the behavior script, not the control that references the behavior button. Am I misunderstanding? If not, any suggestion

Re: MouseWithin

2012-06-23 Thread Peter Haworth
Hi Craig, I'm actually using the mouseLine function in my mouseWithin handler. Since I wrote my email, I found that I can use the mouseMove message in a behavior and all works fine so life is good. By the way, I don't see a mouseHover message in the dictionary - were you just usi

Re: MouseWithin

2012-06-23 Thread dunbarx
2012 4:00 pm Subject: MouseWithin It would appear that a mouseWithin handler can't be used in a behavior script? The mouseWithin message seems to be sent to the button containing the behavior script, not the control that references the behavior button. Am I misunderstanding? If not, any sugges

MouseWithin

2012-06-23 Thread Peter Haworth
It would appear that a mouseWithin handler can't be used in a behavior script? The mouseWithin message seems to be sent to the button containing the behavior script, not the control that references the behavior button. Am I misunderstanding? If not, any suggestions for how to overcome thi