Inside Andrew's code, recapped as below,

viewmat_z_=:3 : 0
'' viewmat y
:
  for_l. conl 1 do.
    if. 0=nc__l <'COCREATOR' do.
      if. COCREATOR__l-:<'jviewmat' do.
        NB. !!! FOUND jviewmat form

        wd 'psel ',HWNDP__l
        x viewmatcc__l y;GID__l
        glpaint__l ''   <<<<<<<<

        return.
      end.
    end.
  end.
  x viewmat_jviewmat_ y
)
 On Jan 11, 2015 7:48 PM, "Ben Gorte - CITG" <[email protected]> wrote:

> Where could I try to do so? There is no glpaint in viewmat.ijs
> ________________________________________
> From: [email protected] [
> [email protected]] on behalf of bill lam [
> [email protected]]
> Sent: Sunday, January 11, 2015 07:43
> To: [email protected]
> Subject: Re: [Jprogramming] jviewmat window reuse
>
> I don't know if this can work, but you may try glpaintx
> instead of glpaint.
>
> Сб, 10 янв 2015, Ben Gorte - CITG написал(а):
> > Thanks for the reply. It resizes all right, and it also gets to
> viewmatcc when I try to viewmat a second time.
> > ________________________________________
> > From: [email protected] [
> [email protected]] on behalf of Andrew Nikitin [
> [email protected]]
> > Sent: Saturday, January 10, 2015 18:20
> > To: J programming
> > Subject: [Jprogramming] jviewmat window reuse
> >
> > > Ben Gorte - CITG B.G.H.Gorte at tudelft.nl
> >
> > > Hi, should this also work in Linux/j64-803/qt?
> >
> > Probably not. I needed it for j602, which uses older wd gui and may not
> be compatible on the interface level with qt.
> >
> > > The first viewmat responds like ever, but the second does not. The
> window
> > > does not change and no new one is created. All it does (that I can
> see) is
> > > return 0 .
> >
> > Does it update the display after you resize the form? I had to add
> glpaint to refresh the display. This is wd/isigraph method, the qt
> implementation may require different update.
> >
> > The code looks for existing locale with jviewmat. If not found, it just
> launches original viewmat, thus creating a new window. If not, then it
> tries updates isigraph control in the existing window using viewmatcc verb
> which is specifically designed with this functionality in mind. Now I do
> not have j80x, but I would not be surprised if the structure of jviewmat is
> mostly retained there.
> >
> >
> >
> >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> 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