Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread [-hh]
A few words in defense of the LC dev team: We have the first stable release, a dot-dot-release ... And I couldn't even find in 5 minutes an arrowkey on one of the available mobiles around! Not sent from an iPhone. -- View this message in context: http://runtime-revolution.278305.n4

Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread RM
e 'kindest' explanation of why a fair few of these things keep cropping up. R. On 7.05.2016 22:42, Scott Rossi wrote: The arrowKey code has nothing to do with a change in language -- the lack of arrowKey functionality in the IDE is just an oversight on the part of LiveCode Ltd. (at lea

Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread Scott Rossi
The arrowKey code has nothing to do with a change in language -- the lack of arrowKey functionality in the IDE is just an oversight on the part of LiveCode Ltd. (at least, I hope it is). Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 5/7/16, 12:24 PM, "use-liv

Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread Mike Bonner
22:30, Mike Bonner wrote: > >> If there isn't a focused object, arrowkey is supposed to be sent to the >> card. This isn't happening in 8. >> >> If you place an additional object (like a scrolling list field) onto the >> card and click it so that it has focus, and th

Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread RM
Glad you filed that bug report, as arrowKeys not being sent to a card would be a real B*mmer. Thanks. Richmond. On 7.05.2016 22:30, Mike Bonner wrote: If there isn't a focused object, arrowkey is supposed to be sent to the card. This isn't happening in 8. If you place an additional object

Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread Mike Bonner
If there isn't a focused object, arrowkey is supposed to be sent to the card. This isn't happening in 8. If you place an additional object (like a scrolling list field) onto the card and click it so that it has focus, and then hit the arrow keys, your object to move will behave as you expect

Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread RM
I am beginning to wonder exactly HOW MUCH of the language has been changed, and what justifies such change. Richmond. On 7.05.2016 21:56, Scott Rossi wrote: If you want to recreate the behavior of previous versions of LC, you can do something like this: on arrowKey theKey if the selObj

Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread Scott Rossi
If you want to recreate the behavior of previous versions of LC, you can do something like this: on arrowKey theKey if the selObj is empty then pass arrowKey put loc of the selObj into theLoc put 1 into D if the shiftkey is down then multiply D by 10 switch theKey case "

Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread RM
NBG: Stack here: http://forums.livecode.com/viewtopic.php?f=6=27225 on arrowKey AWK switch AWK case "left" put item 1 of the loc of img "eight" into IT1 put item 2 of the loc of img "eight" into IT2 put (IT1 - 10) into IT1

ArrowKey Handler in LiveCode 8?

2016-05-06 Thread JOHN PATTEN
Hi All, I was going to use the arrow keys to move an object, something like what Devin wrote up a while ago: on arrowKey pWhich # determine some way to designate which object is to be nudged put the long id of btn "test" into tSelObj # for example switch pWhich case "

Re: arrowKey 'up' and 'down'

2016-04-24 Thread Mike Bonner
Heres my take on it. Moved most of the code to the graphic. Game loops work so much better for this type of thing because you avoid the "arrowkey" repeat problem entirely. All it does is loop, look at what keys are down, and acts appropriately. Changed the move distance to 5, and

Re: arrowKey 'up' and 'down'

2016-04-24 Thread Mike Bonner
because you avoid the "arrowkey" > repeat problem entirely. > > All it does is loop, look at what keys are down, and acts appropriately. > Changed the move distance to 5, and increment a counter to pick the next > animation frame. > > Added a start button to start

Re: arrowKey 'up' and 'down'

2016-04-24 Thread RM
Of course my next problem is how, when a punter presses the arrowKey to have it "fire" only once: i.e. then chummy keeps his/her finger on the key it doesn't continue sending arrowKey signals after the first one. Richmond. ___ use-liveco

Re: arrowKey 'up' and 'down'

2016-04-24 Thread RM
"pass arrowKey" sorted things out rather well: thanks a lot! https://www.dropbox.com/s/5ym1zrzebsfrbyy/ANIMATION%209.5.livecode.zip?dl=0 Richmond. On 24.04.2016 08:44, Peter Bogdanoff wrote: Also, you might include “pass arrowKey” at the end of the script Peter On Apr 23, 2016, a

Re: arrowKey 'up' and 'down'

2016-04-23 Thread Peter Bogdanoff
Also, you might include “pass arrowKey” at the end of the script Peter On Apr 23, 2016, at 12:49 PM, RM <richmondmathew...@gmail.com> wrote: > Thanks for those recommendations; will try them tomorrow as it is almost my > bedtime > over here in Bulgaria. > > Richmond. >

Re: arrowKey 'up' and 'down'

2016-04-23 Thread RM
Thanks for those recommendations; will try them tomorrow as it is almost my bedtime over here in Bulgaria. Richmond. On 23.04.2016 22:31, J. Landman Gay wrote: On 4/23/2016 1:00 PM, RM wrote: (pseudocode) on arrowKey ArKey if ArKey = "right" then move object in some way

Re: arrowKey 'up' and 'down'

2016-04-23 Thread J. Landman Gay
On 4/23/2016 1:00 PM, RM wrote: (pseudocode) on arrowKey ArKey if ArKey = "right" then move object in some way this line defines send signal to object to initiate animation script within object end if end arrowKey when I hit my right arrow key ONCE the ob

arrowKey 'up' and 'down'

2016-04-23 Thread RM
created a problem: if I have this sort of code in my cardScript: (pseudocode) on arrowKey ArKey if ArKey = "right" then move object in some way this line defines send signal to object to initiate animation script within object end if end arrowKey when I hit my right arro

Re: list field not getting arrowkey msg

2015-07-22 Thread BNig
the hilitedLine of me into tHilitedLine if tHilitedLine then select line tHIlitedLine of me end activateLine -- Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/list-field-not-getting-arrowkey-msg-tp4694070p4694196

Re: list field not getting arrowkey msg

2015-07-22 Thread Mike Bonner
then select line tHIlitedLine of me end activateLine -- Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/list-field-not-getting-arrowkey-msg-tp4694070p4694196.html Sent from the Revolution - User mailing list

Re: list field not getting arrowkey msg

2015-07-22 Thread BNig
-- View this message in context: http://runtime-revolution.278305.n4.nabble.com/list-field-not-getting-arrowkey-msg-tp4694070p4694201.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode

Re: list field not getting arrowkey msg

2015-07-21 Thread Dr. Hawkins
Foolish question, but have you tried creating a new field from scratch, pasting the script, and seeing if that works? I've had to do that a couple for times when some exotic and non-displayed property or another got set. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462

Re: list field not getting arrowkey msg

2015-07-21 Thread Peter M. Brigham
That's my next step. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Jul 21, 2015, at 11:26 AM, Dr. Hawkins wrote: Foolish question, but have you tried creating a new field from scratch, pasting the script, and seeing if that works? I've had to do that a

Re: list field not getting arrowkey msg

2015-07-21 Thread Peter M. Brigham
or other work-around needed, ie, it works the way list fields are supposed to work: just click on the field to hilite a line, then arrowkey up or down to change the hilitedline. Still a mystery. I may need to delete the field and replace it with a copy of my working field from the other stack

Re: list field not getting arrowkey msg

2015-07-21 Thread Mike Bonner
What I mean is.. When I use tab to change focus between fields, the arrow keys do nothing in the field I tabbed into. When I click and select a line in the field, then the arrow keys work. In the former, the focusedobject correctly shows the field in question, but has no selectedchunk. In the

Re: list field not getting arrowkey msg

2015-07-21 Thread Bob Sneidar
to true -- in fact, AFAICS all their basic properties are the same. I have no arrowkey handlers in any scripts in the misbehaving stack. Ideas? -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ use-livecode

Re: list field not getting arrowkey msg

2015-07-21 Thread Mike Bonner
Having a line hilited isn't enough. It seems you MUST have an insertion point of some type. Either select the line lineNbr, or if there is nothing selected, set the selectedchunk to char 1 to 0 of me On Tue, Jul 21, 2015 at 8:38 AM, Peter M. Brigham pmb...@gmail.com wrote: On Jul 21, 2015,

Re: list field not getting arrowkey msg

2015-07-21 Thread J. Landman Gay
On July 21, 2015 9:38:11 AM CDT, Peter M. Brigham pmb...@gmail.com wrote: I don't see anything in my mouseup script that would change the focus: on mouseup tBtn select empty -- putting focus on me here doesn't fix the problem As a test, remove the select empty line and see what happens.

Re: list field not getting arrowkey msg

2015-07-21 Thread Mike Bonner
Hey, in fact, the easiest test I can find to prove this is.. put a mouseup handler in a field with ONLY select empty. Then try it. Boom, no arrow keys. On Tue, Jul 21, 2015 at 10:44 AM, Mike Bonner bonnm...@gmail.com wrote: What I mean is.. When I use tab to change focus between fields, the

Re: list field not getting arrowkey msg

2015-07-21 Thread Richard Gaskin
Mike Bonner wrote: What I mean is.. When I use tab to change focus between fields, the arrow keys do nothing in the field I tabbed into. When I click and select a line in the field, then the arrow keys work. In the former, the focusedobject correctly shows the field in question, but has no

Re: list field not getting arrowkey msg

2015-07-21 Thread Mike Bonner
Heres the bug you reported Richard: http://quality.runrev.com/show_bug.cgi?id=13689 Going to add a note to it. On Tue, Jul 21, 2015 at 10:55 AM, Mike Bonner bonnm...@gmail.com wrote: Depends, I went back to 6.6.2. Don't know if it goes farther back than 5.5, but.. is this expected behavior or

Re: list field not getting arrowkey msg

2015-07-21 Thread Mike Bonner
Depends, I went back to 6.6.2. Don't know if it goes farther back than 5.5, but.. is this expected behavior or no? I'll see if I can locate the report real quick. On Tue, Jul 21, 2015 at 10:50 AM, Richard Gaskin ambassa...@fourthworld.com wrote: Mike Bonner wrote: What I mean is.. When I

Re: list field not getting arrowkey msg

2015-07-21 Thread Peter M. Brigham
On Jul 21, 2015, at 12:44 PM, Mike Bonner wrote: What I mean is.. When I use tab to change focus between fields, the arrow keys do nothing in the field I tabbed into. When I click and select a line in the field, then the arrow keys work. In the former, the focusedobject correctly shows the

Re: list field not getting arrowkey msg

2015-07-21 Thread Peter M. Brigham
So creating a new list field (with the same script as the old one) and deleting the old list field did the trick. I don't know what field property setting that I was unaware of caused this problem. AFAIK, there should be no field property that blocks a list field from getting arrowkey messages

Re: list field not getting arrowkey msg

2015-07-21 Thread Mike Bonner
Very weird. I can't get arrow keys to work with any list field if the selection is empty. But hey, all that matters is that it works. On Tue, Jul 21, 2015 at 1:46 PM, Peter M. Brigham pmb...@gmail.com wrote: On Jul 21, 2015, at 12:44 PM, Mike Bonner wrote: What I mean is.. When I use tab

Re: list field not getting arrowkey msg

2015-07-21 Thread Kay C Lan
On Mon, Jul 20, 2015 at 11:17 AM, Peter M. Brigham pmb...@gmail.com wrote: Having found that the focus is on the card, for reasons best known to the engine (certainly not to me), What does the Message Watcher say? If on clicking on a line in the fld fires a salvo of messages, somewhere -

Re: list field not getting arrowkey msg

2015-07-21 Thread Peter M. Brigham
:47 PM, Peter Brigham wrote: Unfortunately, I still get nothing with the hilitedlines of me in the field script. The arrowkey message is not going to the field. Here's the arrowkey handler in the card script. This works fine but I don't know why it should be necessary. on arrowkey what

Re: list field not getting arrowkey msg

2015-07-21 Thread Peter M. Brigham
On Jul 21, 2015, at 2:07 AM, Kay C Lan wrote: On Mon, Jul 20, 2015 at 11:17 AM, Peter M. Brigham pmb...@gmail.com wrote: Having found that the focus is on the card, for reasons best known to the engine (certainly not to me), What does the Message Watcher say? If on clicking on a line

Re: list field not getting arrowkey msg

2015-07-20 Thread Peter Haworth
of me in the field script. The arrowkey message is not going to the field. Here's the arrowkey handler in the card script. This works fine but I don't know why it should be necessary. on arrowkey what put hilitedline of fld notesList into lineNbr put the number of lines of fld

Re: list field not getting arrowkey msg

2015-07-20 Thread J. Landman Gay
On 7/19/2015 10:17 PM, Peter M. Brigham wrote: There is a line selected. If I put the following into the field script: on arrowkey put the hilitedlines end arrowkey then click in the field to select a line, then hit up- or down-arrowkey, nothing happens. The field is apparently

Re: list field not getting arrowkey msg

2015-07-20 Thread Peter Brigham
Unfortunately, I still get nothing with the hilitedlines of me in the field script. The arrowkey message is not going to the field. Here's the arrowkey handler in the card script. This works fine but I don't know why it should be necessary. on arrowkey what put hilitedline of fld notesList

Re: list field not getting arrowkey msg

2015-07-20 Thread J. Landman Gay
But did you try a mouseUp handler? I'm curious if the field is recognized in any way. On 7/20/2015 1:47 PM, Peter Brigham wrote: Unfortunately, I still get nothing with the hilitedlines of me in the field script. The arrowkey message is not going to the field. Here's the arrowkey handler

list field not getting arrowkey msg

2015-07-19 Thread Peter M. Brigham
arrow keys move the selection up or down. I have a similar field in another stack that works exactly as expected. The two fields both have their listbehavior set to true -- in fact, AFAICS all their basic properties are the same. I have no arrowkey handlers in any scripts in the misbehaving stack

Re: list field not getting arrowkey msg

2015-07-19 Thread Mike Bonner
it would be to catch the arrowkey message in the field, and if there is a hilite, but no lines selected, select the hilited line then pass arrowkey. If there are no lines selected, and no hilites, select and hilite the first line. If I understand correctly, the second part should only be necessary if you

Re: list field not getting arrowkey msg

2015-07-19 Thread Peter M. Brigham
in the field. IE no insertion point, so the arrow keys don't work. Not using tab to select into the field. Clicking on the line, it gets selected, then arrowkey does nothing. I've found that if you select the hilited line as you tab into the field it solves this problem. If this is the problem

Re: list field not getting arrowkey msg

2015-07-19 Thread Mike Bonner
work. (6.7.6) When you tab into a list field, the hilite remains, but there is no selection in the field. IE no insertion point, so the arrow keys don't work. Not using tab to select into the field. Clicking on the line, it gets selected, then arrowkey does nothing. I've found

Scripter's Scrapbook (was arrowkey)

2011-12-21 Thread FlexibleLearning
A reminder that the Scripter's Scrapbook is designed to do exactly this... www.ssbk.co.uk or http://www.runrev.com/store/product/scripters-scrapbook-1-0-0/ And if you want a 'Socks' category, you can have that too! Hugh Senior FLCo On Dec 20, 2011, at 7:04 AM, Mike Bonner wrote: I saw

Re: arrowKey

2011-12-20 Thread paolo mazza
every possibility but will something like the following work? -- in the card I put on arrowKey pKey   set the cKeyDown of this stack to pKey   pass arrowKey end arrowKey on rawKeyUp pKey   if pKey is among the items of 65361,65362,65363,65364 then      if the cKeyDown of this stack

Re: arrowKey

2011-12-20 Thread Mike Bonner
Paolo On Mon, Dec 19, 2011 at 5:28 PM, Mike Bonner bonnm...@gmail.com wrote: I'm sure this doesn't cover every possibility but will something like the following work? -- in the card I put on arrowKey pKey set the cKeyDown of this stack to pKey pass arrowKey end arrowKey

Re: arrowKey

2011-12-20 Thread Peter M. Brigham, MD
On Dec 20, 2011, at 7:04 AM, Mike Bonner wrote: I saw the other input for this problem, I'm thinking that checking keysdown() for the arrow keycodes would be a more reliable solution depending on your needs. I swear I keep learning new things on this list and in the forums. Luckily I have

Re: arrowKey

2011-12-20 Thread Mike Bonner
I gave up on socks years ago. They're not worth the temporal disturbance. On Tue, Dec 20, 2011 at 7:31 AM, Peter M. Brigham, MD pmb...@gmail.comwrote: On Dec 20, 2011, at 7:04 AM, Mike Bonner wrote: I saw the other input for this problem, I'm thinking that checking keysdown() for the arrow

Re: arrowKey

2011-12-20 Thread paolo mazza
possibility but will something like the following work? -- in the card I put on arrowKey pKey   set the cKeyDown of this stack to pKey   pass arrowKey end arrowKey on rawKeyUp pKey   if pKey is among the items of 65361,65362,65363,65364 then      if the cKeyDown of this stack

Re: arrowKey

2011-12-20 Thread Bob Sneidar
Jacque was wearing it yesterday, along with a white kneehigh with blue and red stripes. Bob On Dec 20, 2011, at 6:31 AM, Peter M. Brigham, MD wrote: Yeah, me too -- as one of my patients once said to me, I have a mind like a steel sieve. I save lots of tips from this list in a stack I've

Re: arrowKey

2011-12-20 Thread Peter M. Brigham, MD
Is there some reason not to do it this way?: on arrowkey which put the loc of button square into tRect switch which case left subtract 1 from item 1 of tRect break case right add 1 to item 1 of tRect break case up subtract 1

Re: arrowKey

2011-12-20 Thread J. Landman Gay
On 12/20/11 10:07 AM, Bob Sneidar wrote: Jacque was wearing it yesterday, along with a white kneehigh with blue and red stripes. I found it in my sock drawer. I thought it was yours. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |

Re: arrowKey

2011-12-20 Thread Peter M. Brigham, MD
Nope, it's mine. I hope at least it got to you *after* it went through my wash cycle If not, I apologize. I'm definitely putting in an enhancement request to the QC to extend the find command to socks. I bet Scott Raney anticipated the need and built it into an obscure corner of the engine

arrowKey

2011-12-19 Thread paolo mazza
Hi All, how can I check if the arrowKey up is down or is up ? For example, for the option Key I can write .. if the optioKey is down then..., for the mouse I can write ... if the mouse is down then ... What about the arrow keys ? All the best Paolo

Re: arrowKey

2011-12-19 Thread Mike Bonner
I'm sure this doesn't cover every possibility but will something like the following work? -- in the card I put on arrowKey pKey set the cKeyDown of this stack to pKey pass arrowKey end arrowKey on rawKeyUp pKey if pKey is among the items of 65361,65362,65363,65364