Hi Rob

That example was written using an earlier version of J and needs to be
updated for J8. The problem is that painting commands were being given to
an isigraph control before it was painted, whereas in J8, painting commands
must be given in a paint event.

For current gl2 examples, try Help|Studio|Qt Demos|gl2 and
Help|Studio|Showcase|isigraph.

Chris

On 31 October 2016 at 06:14, Rob Moore <[email protected]> wrote:

> Hi, first time posting to this mailing list
>
> I'm trying to use the graphics modules in J, but the gl2 module is not
> working after what appeared to be a flawless installation using "install
> 'all' " in the J conosle. This is following the examples on
> http://www.jsoftware.com/help/jforc/graphics.htm
>
>    load 'gl2'
>    coinsert 'jgl2'
>    load 'graph'
>    gopen ' '
> |qp : command not found
> : wd
> |   (LF,~wd ::(''"_)'qer')           (13!:8)3
>
> So the command 'qp' is not in the function wd, but in gopen, it is:
>
>    gopen
> 3 : 0
> y=. 2{.}.0;y
> 'c n'=. (<'isigraph') (I. y=<'') }y
> *if. (<c) e. <;._2 wd 'qp;' do.*
>   wd 'psel ',c
>   glclear_jgl2_''
> else.
>   wd 'pc ',c,' closeok;pn *',n
>   wd 'xywh 0 0 150 150;cc g0 isigraph rightmove bottommove'
>   wd 'pas 0 0;pcenter'
>   fx=. 0 ". wd 'qformx'
>   wd 'pmove 150 5 ',": 2 }. fx
>   wd 'pshow;'
> end.
> )
>
> Thanks,
>
> Rob
> ----------------------------------------------------------------------
> 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