Re: Sending ArrowKey(down)

2006-08-27 Thread Sivakatirswami
yep, that's exactly what I ended up doing... much more solid approach, 
slightly more verbose,

But sometimes verbose is good: you can see what's  happening

setting the hilitedline of a fld  makes more sense than
than trying to emulate a  system keyboard input event.

got this now in that same fld.

on tabkey
 if the shiftkey is down then
   saveCaption
   set the hilitedline of fld fileList to (gLastLine-1)
   send postimage to fld  fileList
 else
   saveCaption
   set the hilitedline of fld fileList to (gLastLine+1)
   send postimage to fld  fileList
 end if
end tabkey



Ken Ray wrote:



Try:

  send arrowKey  quote  down  quote to fld fileList

But personally if there is a better way, like to activate the same handler
that is activated when arrowkey down is triggered, that would be best,
IMHO...

Ken Ray

  

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Sending ArrowKey(down)

2006-08-26 Thread Sivakatirswami
I have an arrowkey handler in a list field. when the user arrows down, 
stuff happens...


I would like to be able to pass that arrow key down from a field  but i 
can't get it to work:


the idea is: someone is typing in this field and when they are done, 
they hit tab and the arrowkey msg is sent to the list field.


on tabkey
 send arrowkey(down) to fld  fileList
end tabkey


doesn't work

on tabkey
 send arrowkey(down) to fld  fileList
end tabkey

also doesn't work.

The field is not in a group, there is no group on the card
and thus the field does not have tabbed behavior explicitely set,
but still if I tab from the field it goes to the next field on the card.

But the tabkey msg is sent, because  I do get  an error message say
error in function: arrowkey(down)

The docs say:

  Note:  Sending an arrowKey message does nothing unless there is an 
arrowKey handler in the message path. This is a difference from 
HyperTalk's handling of the arrowKey message.


So, it appears like it should work, but there's no example in the docs 
on just exactly how to send an arrowKey message, which one assumes must 
require a parameter to indicate which of the  four arrow keys one is 
emulating.


I'm missing some thing simple

TIA
Sivakatirswami




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Sending ArrowKey(down)

2006-08-26 Thread Ken Ray
On 8/26/06 5:14 AM, Sivakatirswami [EMAIL PROTECTED] wrote:


 
 But the tabkey msg is sent, because  I do get  an error message say
 error in function: arrowkey(down)
 
 The docs say:
 
   Note:  Sending an arrowKey message does nothing unless there is an
 arrowKey handler in the message path. This is a difference from
 HyperTalk's handling of the arrowKey message.
 
 So, it appears like it should work, but there's no example in the docs
 on just exactly how to send an arrowKey message, which one assumes must
 require a parameter to indicate which of the  four arrow keys one is
 emulating.

Try:

  send arrowKey  quote  down  quote to fld fileList

But personally if there is a better way, like to activate the same handler
that is activated when arrowkey down is triggered, that would be best,
IMHO...

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution