[Jprogramming] sysdata in the isigraph char event

Jimmy Miller captainthunder at gmail.com
Sun Jun 3 22:49:39 HKT 2007


Thanks for the reply.  I got to the point where I could test for
individual letter keys, but I'm still having trouble with the arrows.
If I try to test for the characters that correspond to the arrow keys,
like ┤:

test_pic_char =: 3 : 0
if. sysdata = '┤' do.
wd 'setxywh pic 0 0 150 150'
end.
)

I get a 'length error' when the program runs.  Any ideas?

On 6/3/07, Chris Burke <cburke at jsoftware.com> wrote:
> Jimmy Miller wrote:
> > I've been trying to get an isigraph to move to a certain location when
> > the user presses the up arrow key.  I figured out how to get it to
> > move based on any key:
> >
> > test_pic_char =: 3 : 0
> > wd 'setxywh pic 0 0 150 150'
> > )
> >
> > But I'm unsure how to detect the up key.  Based on the isigraph events
> > page (http://www.jsoftware.com/help/user/isigraph_events.htm), I
> > figured sysdata would be 21 when the user presses the up key:
>
> The datatype of sysdata is always character. The numbers shown are the
> indices of the character values in a. (alphabet).
>
> You can just press a key, observe the value of sysdata, and then program
> for that value.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>


-- 
<a href="http://www.spreadfirefox.com/?q=affiliates&id=153516&t=1"><textarea
rows="3" cols="40">Get Firefox!</a>


More information about the Programming mailing list