One place sysdata is documented at is
http://www.jsoftware.com/docs/help701/user/isigraph_events.htm another
is http://www.jsoftware.com/help/jforc/graphics.htm - I'm not sure if
there's any new j version 8 details on it, yet.

Event handling more generally is documented at
http://code.jsoftware.com/wiki/Guides/Window_Driver/Window_Driver_Overview#Event_Handlers

More specifically, wdhandler sets the value of sysdata on its third line:

3 : 0
wdq=: wd 'q'
wd_val=. {:"1 wdq
({."1 wdq)=: wd_val
...

If you override wdhandler (and don't delegate to it) I think you'll
have to take care of this yourself.

Thanks,

-- 
Raul

On Wed, Jan 10, 2018 at 11:02 PM, Dabrowski, Andrew John
<[email protected]> wrote:
> Got it.
>
> EigenPicture is cool.  Does it get the xy-coordinates of the mouse from
> sysdata?  Where is sysdata documented?
>
>
> epd_g_mmove=: 3 : 0
>
> 'x y w h'=. 4 {. 0 ". sysdata
>
> y=. h - y
>
> rim=. unitvec (x,y) - -: w,h
>
> end=. rim + MATRIX mp rim
>
> j=. (MX,MY) + rim * X1,Y1
>
> pts=. flipypos 2 4$(MX,MY), j, j, (MX,MY) + end * X1,Y1
>
> glsel 'g'
>
> glclear''
>
> drawframe ''
>
> glpen 2 1
>
> drawpin LASTPTS
>
> setcolor EIGENCOLOR
>
> glpen 2 1
>
> drawpin pts
>
> drawpic''
>
> glpaint ''
>
> LASTPTS=: pts
>
> )
>
>
>
> On 01/10/2018 02:23 PM, Raul Miller wrote:
>> I have installed all addons, and I am going to presume you have also.
>>
>> When I go to the jqt Help menu, I can select Studio > Showcase... and
>> this offers the demos:
>>
>> cities
>> coins
>> deoptim
>> eigenpictures
>> events
>> isigraph
>> isigrid
>> life
>> minesweeper
>> plot
>> solitaire
>> unicode simple
>>
>> And, then, each of these demos has its own menu with further depth.
>>
>> Some quick searching shows that the underlying implementation for this
>> demos node in the jqt ui is addons/demos/wd/demos.ijs
>>
>> If you do not see that, where does what you see differ?
>>
>> Thanks,
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to