Re: Messages sent while mouse is down?

2017-03-12 Thread Jim Lambert via use-livecode
> Tim wrote: > > Click and drag the mouse through > adjacent letters to make words. > > Without clicking, simply moving the mouse through the tiles > (fields) triggers mouseenter, mouseleave, etc. which makes it > easy to pick up the letters. > > But when the mouse is down, it seems

Re: Messages sent while mouse is down?

2017-03-11 Thread Tim Selander via use-livecode
Yes, that had occurred to me, but my explanation was too simplistic. While it is a Scrabble-esque game with tiles, the tiles are hexagons and are staggered on the board. (pic-- http://tinyurl.com/jjcqolm) That still might be calculate-able, but is beyond my math skills! Thanks, Tim On

Re: Messages sent while mouse is down?

2017-03-11 Thread Mike Bonner via use-livecode
If the names of the tiles are numbered in a logical way, and only go horizontal, and vertical, then all you need to know is the start spot, and the end spot, and can fill in the gaps between. On Sat, Mar 11, 2017 at 4:06 PM, Quentin Long via use-livecode < use-livecode@lists.runrev.com> wrote:

Re: Messages sent while mouse is down?

2017-03-11 Thread Quentin Long via use-livecode
sez Tim Selander : > I miss the Zynga "Pathwords" game on Facebook, so for my own > amusement I'm trying to recreate it in Livecode. > > For those who don't know the game, it had a solid screenful of > Scrabble-like lettered tiles. Click and drag the mouse through >

Re: Messages sent while mouse is down?

2017-03-11 Thread hh via use-livecode
Although there is one scenario where one has to use Mike's looping "within"-approach (adjusted to collecting, not exiting the repeat): If the controls in question (may be all) have some overlapping areas: controlAtLoc((x,y)) reports only the control at (x,y) with the highest layer. > JLG wrote:

Re: Messages sent while mouse is down?

2017-03-11 Thread Mark Wieder via use-livecode
On 03/11/2017 11:43 AM, Mike Bonner via use-livecode wrote: Nah. If you type it wrong twice the error cancels out. Two wrongs don't make a right, but three lefts do. --Steven Wright -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing

Re: Messages sent while mouse is down?

2017-03-11 Thread Mike Bonner via use-livecode
Nah. If you type it wrong twice the error cancels out. On Sat, Mar 11, 2017 at 11:10 AM, J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > And it works even better when I spell it right. ;-) > > -- > Jacqueline Landman Gay | jac...@hyperactivesw.com >

Re: Messages sent while mouse is down?

2017-03-11 Thread J. Landman Gay via use-livecode
And it works even better when I spell it right. ;-) -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 11, 2017 11:54:59 AM Mike Bonner via use-livecode wrote: Hey

Re: Messages sent while mouse is down?

2017-03-11 Thread Mike Bonner via use-livecode
Hey thats awesome! Thanks Jacqueline, another gem I had yet to discover. On Sat, Mar 11, 2017 at 9:32 AM, J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > You could also try comtrolAtLoc() which would avoid the loop. > > -- > Jacqueline Landman Gay |

Re: Messages sent while mouse is down?

2017-03-11 Thread J. Landman Gay via use-livecode
You could also try comtrolAtLoc() which would avoid the loop. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 11, 2017 3:51:04 AM Tim Selander via use-livecode wrote:

Re: Messages sent while mouse is down?

2017-03-11 Thread Tim Selander via use-livecode
Oh ho! That does it, Mike. Many thanks! Tim On 2017.03.11, 18:35, Mike Bonner via use-livecode wrote: accidental send before complete. *sigh* on mousemove put 1 & cr & 2 into objectList -- just using control number for the quick example if the mouse is down then repeat for

Re: Messages sent while mouse is down?

2017-03-11 Thread Mike Bonner via use-livecode
accidental send before complete. *sigh* on mousemove put 1 & cr & 2 into objectList -- just using control number for the quick example if the mouse is down then repeat for each line tLine in objectList if within(control tLine,the mouseloc) then put tLine into

Re: Messages sent while mouse is down?

2017-03-11 Thread Mike Bonner via use-livecode
mousemove works. It does appear that "mousecontrol" doesn't fire when the mouse is down so that is out. You can also use "within" which is pretty fast. Have a variable with a list of the objects you wish to check against (or array, or whatever) on mousemove if the mouse is down then repeat

Messages sent while mouse is down?

2017-03-11 Thread Tim Selander via use-livecode
I miss the Zynga "Pathwords" game on Facebook, so for my own amusement I'm trying to recreate it in Livecode. For those who don't know the game, it had a solid screenful of Scrabble-like lettered tiles. Click and drag the mouse through adjacent letters to make words. Without clicking,