Hi, should this also work in Linux/j64-803/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 .

It would be great if it worked!

Ben
________________________________________
From: [email protected] 
[[email protected]] on behalf of Andrew Nikitin 
[[email protected]]
Sent: Friday, January 09, 2015 20:20
To: J programming
Subject: [Jprogramming] jviewmat window reuse

> From: bill lam <[email protected]>

> You may try create a form with a isigraph and then pass the isigraph to
> viewmat. see the isigraph demo.

Thanks, that helped. Here is what I ended up doing:

NB. hack to "reuse" viewmat window
NB. 2015-01-07 16:54:43 created by nsg

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
)


http://www.jsoftware.com/jwiki/AndrewNikitin/viewmat


----------------------------------------------------------------------
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