Re: MouseDown on Enter

2019-01-02 Thread Alex Tweedly via use-livecode
On 01/01/2019 20:39, Alex Tweedly via use-livecode wrote: However - I'm not sure that's a very intuitive UI ("release to play"), so I'd probably go the extra mile and do the harder one that replicates the original UI. And that *is* harder, so I will try it out before I say any more about it ..

Re: MouseDown on Enter

2019-01-01 Thread J. Landman Gay via use-livecode
Correction: you need to include more ways to turn off the dragging control: local sColor local sDragging on mouseDown put the cColor of the mouseControl into sColor set the backcolor of the mouseControl to sColor put true into sDragging end mouseDown on mouseUp put the cColor of the mou

Re: MouseDown on Enter

2019-01-01 Thread J. Landman Gay via use-livecode
On 1/1/19 9:23 AM, Richmond via use-livecode wrote: 1. When one performs a mouseDown on each hexagon a tone is played. 2. While the mouse button is held down the tone continues to sound. 3. If the mouse is dragged (while being pressed) from one hexagon to the next, the sound changes from tha

Re: MouseDown on Enter

2019-01-01 Thread Alex Tweedly via use-livecode
First I would consider whether you want *exactly* that UI, or whether something very similar would do. If similar is OK, then I would invert the logic of the UI:  - if the mouse (pointer) is over a hexagon, and the mouse is not being pressed - play that note, and keep playing it  - if mouse

Re: MouseDown on Enter

2019-01-01 Thread Richmond via use-livecode
PRESUMABLY because there was NOT an object being DRAGGED. *Ru Paul* and All! I don't want to DRAG an object: all I want to do is drag the mouse into the object. On 1.01.19 19:48, Richmond wrote: With the left mouse button depressed I dragged into the graphic "h3" that contained this script:

Re: MouseDown on Enter

2019-01-01 Thread Richmond via use-livecode
With the left mouse button depressed I dragged into the graphic "h3" that contained this script: ondragEnter     setthebackgroundColorofmetogreen enddragEnter and *NOTHING* happened. On 1.01.19 19:20, Paul Dupuis via use-livecode wrote: You may need to look at LiveCode's drag events since tha

Re: MouseDown on Enter

2019-01-01 Thread Richmond via use-livecode
Well, of course, one can mess around with "is within", except that my poisonous mind starts worrying about hexagons when LiveCode seems better at understanding rectangles. Richmond. On 1.01.19 19:20, Paul Dupuis via use-livecode wrote: You may need to look at LiveCode's drag events since that

Re: MouseDown on Enter

2019-01-01 Thread Richmond via use-livecode
Now there's a thought! Thanks. Richmond. On 1.01.19 19:20, Paul Dupuis via use-livecode wrote: You may need to look at LiveCode's drag events since that is the mouse action you are trying to address, namely dragging from one hexagon to another. See the dictionary for events like dragStart,

Re: MouseDown on Enter

2019-01-01 Thread Paul Dupuis via use-livecode
You may need to look at LiveCode's drag events since that is the mouse action you are trying to address, namely dragging from one hexagon to another. See the dictionary for events like dragStart, dragEnter, dragLeave, dragStop, etc. ___ use-liveco

Re: MouseDown on Enter

2019-01-01 Thread Richmond via use-livecode
OK, OK; let's be direct and to the point: I want to "rip off" the functionality of this web-page: http://terpstrakeyboard.com/about/ Click on the "Play It Now!" menu item and follow through . . . You will end up with a microtonal keyboard that has this functionality: 1. When one performs a mo

Re: MouseDown on Enter

2018-12-29 Thread Richmond via use-livecode
Ah, Yes . . . Thanks so much. Richmond. On 29.12.18 18:52, J. Landman Gay via use-livecode wrote: MouseDown is a message, not a function. You need:  if the mouse is down then    set the...etc. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw

Re: MouseDown on Enter

2018-12-29 Thread J. Landman Gay via use-livecode
MouseDown is a message, not a function. You need: if the mouse is down then set the...etc. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 29, 2018 9:07:37 AM Richmond via use-livecode wrote: This does *NOT* work: on m

Re: MouseDown on Enter

2018-12-29 Thread Alex Tweedly via use-livecode
Not sure that's going to work ... if the mouse button is being held down, you won't get a "mouseenter" event. Dict says: If the mouse button is down when the mouse pointer enters the control, the *mouseEnter* message is not sent unless the mouse button is released while the pointer is still i

Re: MouseDown on Enter

2018-12-29 Thread Tom Glod via use-livecode
oopsi mean if mouse key is down :) On Sat, Dec 29, 2018 at 10:18 AM Tom Glod wrote: > I believe the Keysdown() function picks up the mousebutton as well. that > will give you the info whether enter key is down. > > On Sat, Dec 29, 2018 at 10:06 AM Richmond via use-livecode < > use-livecode@l

Re: MouseDown on Enter

2018-12-29 Thread Tom Glod via use-livecode
I believe the Keysdown() function picks up the mousebutton as well. that will give you the info whether enter key is down. On Sat, Dec 29, 2018 at 10:06 AM Richmond via use-livecode < use-livecode@lists.runrev.com> wrote: > This does *NOT* work: > > on mouseEnter > if mouseDown then >

Re: MouseDown on Enter

2018-12-29 Thread Richmond via use-livecode
This does *NOT* work: on mouseEnter    if mouseDown then   set the backgroundColor of me to red    else   set the backgroundColor of me to green    end if end mouseEnter on mouseLeave    set the backgroundColor of me to white end mouseLeave which is a "right pox" Richmond. On 29.12.18

MouseDown on Enter

2018-12-29 Thread Richmond via use-livecode
This may rank as one of the goofiest questions I've ever asked: Oh, well, here goes: Imagine a mosaic of faux buttons if you will. Each of these buttons will play a tone if I drag my mouse into it: on mouseEnter   play audioClip "x.aiff" end mouseEnter All well and good . . . BUT, Richmond