Re: Syntax: mouseUp mouseButtonNumber

2016-10-17 Thread Bob Sneidar
What the compiler is complaining about is likely that you cannot have a variable start with a number. This is essentially what Roger is doing with the parameter arguement. He is putting a parameter passed by the event into a variable called "2". I'm not sure this is a documentation issue, so muc

Re: Syntax: mouseUp mouseButtonNumber

2016-09-27 Thread Roger Eller
On Tue, Sep 27, 2016 at 9:18 AM, Peter M. Brigham wrote: > On Sep 22, 2016, at 4:11 PM, Roger Eller > wrote: > > > > I am trying to get a right-click to show a contextual menu on Windows. > > Here is a modular way to to popup contextual menus anywhere you want. It > takes a couple minutes to set

Re: Syntax: mouseUp mouseButtonNumber

2016-09-27 Thread Peter M. Brigham
On Sep 22, 2016, at 4:11 PM, Roger Eller wrote: > > I am trying to get a right-click to show a contextual menu on Windows. Here is a modular way to to popup contextual menus anywhere you want. It takes a couple minutes to set up in a stack, but once you’ve done it, you have contextual menus on

Re: Syntax: mouseUp mouseButtonNumber

2016-09-22 Thread Mark Wieder
On 09/22/2016 05:44 PM, Roger Eller wrote: If the syntax example had been pWhichBtn instead of mouseButtonNumber, I "might" have recognized it as a parameter. Aha! Got it now. -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use

Re: Syntax: mouseUp mouseButtonNumber

2016-09-22 Thread Roger Eller
If the syntax example had been pWhichBtn instead of mouseButtonNumber, I "might" have recognized it as a parameter. On Sep 22, 2016 8:26 PM, "Mark Wieder" wrote: > On 09/22/2016 03:39 PM, Roger Eller wrote: > > Possibly. But I learned long ago to never assume even the most basic >> knowledge be

Re: Syntax: mouseUp mouseButtonNumber

2016-09-22 Thread Monte Goulding
> On 23 Sep 2016, at 8:35 AM, Monte Goulding wrote: > > >> On 23 Sep 2016, at 8:15 AM, Roger Eller > > wrote: >> >> http://quality.livecode.com/show_bug.cgi?id=18465 >> > Thanks for that report. It address

Re: Syntax: mouseUp mouseButtonNumber

2016-09-22 Thread Mark Wieder
On 09/22/2016 03:39 PM, Roger Eller wrote: Possibly. But I learned long ago to never assume even the most basic knowledge because "brain-farts" are a real problem. ;) Very much agreed. But this isn't a problem with the mouseUp handler per se. When you declare a handler ("on xxx" or "funct

Re: Syntax: mouseUp mouseButtonNumber

2016-09-22 Thread Roger Eller
On Thu, Sep 22, 2016 at 6:35 PM, Monte Goulding wrote: > > > On 23 Sep 2016, at 8:15 AM, Roger Eller > wrote: > > > > http://quality.livecode.com/show_bug.cgi?id=18465 < > http://quality.livecode.com/show_bug.cgi?id=18465> > Thanks for that report. It addresses the example in the mouseUp docs bu

Re: Syntax: mouseUp mouseButtonNumber

2016-09-22 Thread Monte Goulding
> On 23 Sep 2016, at 8:15 AM, Roger Eller wrote: > > http://quality.livecode.com/show_bug.cgi?id=18465 > Thanks for that report. It addresses the example in the mouseUp docs but I still feel there’s a deeper issue we need to resolve here with

Re: Syntax: mouseUp mouseButtonNumber

2016-09-22 Thread Roger Eller
http://quality.livecode.com/show_bug.cgi?id=18465 Cheers ~Roger ___ 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: Syntax: mouseUp mouseButtonNumber

2016-09-22 Thread Monte Goulding
> On 23 Sep 2016, at 7:27 AM, Roger Eller wrote: > > Thanks Mike! I don't think the docs could have been any muddier. ;) We are happy to accept pull requests on the docs Roger if you can think or a way/where to clarify it. It seems more of a fundamental misunderstanding of what parameters a

Re: Syntax: mouseUp mouseButtonNumber

2016-09-22 Thread Roger Eller
Thanks Mike! I don't think the docs could have been any muddier. ;) ~Roger On Thu, Sep 22, 2016 at 5:24 PM, Mike Bonner wrote: > The parameter is passed on, not set by you. To do what you want it would > be more like > > on mouseup pvar > if pvar is 3 then > do stuff > > end if > end mouseu

Re: Syntax: mouseUp mouseButtonNumber

2016-09-22 Thread Mike Bonner
The parameter is passed on, not set by you. To do what you want it would be more like on mouseup pvar if pvar is 3 then do stuff end if end mouseup On Thu, Sep 22, 2016 at 2:11 PM, Roger Eller wrote: > The script editor won't compile a mouseUp handler with 1 2 or 3 as a > parameter. > > on m