Thomas Costigliola wrote:
> I am bulding a stand-alone program (running with "-jprofile 
> myprogram.ijs"). Can this be used to write the output of 
> running a script to an ijx window I create myself? I have been 
> looking at jijs.ijs but I cuold not figure out how the sessions 
> knows that (1!:2)&2 should write to the ijx window. Is this hard 
> coded? If so how, how exectly is the ijx window identified by 
> internally?

Well... I don't know myself, and I'll be interested if you come
up with a definitive answer (or if the j folk chip in here).

That said, the output of wdform'' probably holds the answer
(as well as some extraneous information).  The format is 
documented under qpx (wd commands), but basically the columns
are:

[0] parent name (argument to wd's pc)
[1] handle (result from wd's qhwndp)
[2] locale (that wd's pc was executed from)
[3] group (argument to pgroup)
[4] active index (larger means more recently active)
[5] title bar (argument to wd's pn)

Anyways, I don't see any use of qhwndp in J's main area, so
I'd just try creating a jijx window and seeing if that works.
But I'd keep in mind that any of the information from wdform
might be significant.  (And, of course, what controls where
1!:2&2 goes might be internal, hard coded, and none of the
above.)

-- 
Raul

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to