You may want to download platimg and there you have example
C:\j601\addons\media\platimg\test.ijs

There you can see how to display many images on the same form


require '~addons/media/platimg/platimg.ijs gl2'
coinsert 'jgl2'

F=: 0 : 0
pc f;pn "Image Formats";
xywh 20 22 8 8;cc g1 isigraph;
xywh 5 48 36 10;cc s1 static ss_center;cn "jicon.gif";
xywh 52 20 16 16;cc g2 isigraph;
xywh 43 49 33 10;cc s2 static ss_center;cn "jr.ico";
xywh 9 80 64 64;cc g3 isigraph;
xywh 17 151 50 10;cc s3 static ss_center;cn "j.bmp";
xywh 86 27 100 100;cc g4 isigraph;
xywh 113 131 50 10;cc s4 static ss_center;cn "box.jpg";
pas 6 6;pcenter;
rem form end;
)

f_run=: 3 : 0
 wd F
 smoutput 'g1' glimg '~profile/jicon.gif'
 smoutput 'g2' glimg^:(UNAME-:'Win'"_) '~profile/jr.ico'
 smoutput 'g3' glimg '~system/examples/data/j.bmp'
 smoutput 'g4' glimg '~system/extras/help/box.jpg'
 wd 'pshow;'
)

f_close=: wd bind 'pclose'

f_run''




2007/2/26, vincent 1000 <[EMAIL PROTECTED]>:

2007/2/26, Björn Helgason <[EMAIL PROTECTED]>:
>
> require'viewmat'
>
>
> HH=: 0 : 0
> pc hh;
> menupop "File";
> menu new "&New" "" "" "";
> menu open "&Open" "" "" "";
> menusep;
> menu exit "&Exit" "" "" "";
> menupopz;
> xywh 136 8 44 12;cc ok button;cn "OK";
> xywh 136 23 44 12;cc cancel button;cn "Cancel";
> xywh 0 0 50 50;cc gg isigraph;
> pas 6 6;pcenter;
> rem form end;
> )
>
> hh_run=: 3 : 0
> wd HH
> NB. initialize form here
> wd 'pshow;'
> )
>
> hh_close=: 3 : 0
> wd'pclose'
> )
>
> hh_cancel_button=: 3 : 0
> hh_close''
> )
>
>
>
>
> hh_run''
>
> MAT=:?100 100$100
> viewmatcc_jviewmat_ MAT;'gg'
>
>
> 2007/2/26, vincent 1000 <[EMAIL PROTECTED]>:
> >
> > 2007/2/26, Oleg Kobchenko <[EMAIL PROTECTED]>:
> > >
> > > --- vincent 1000 <[EMAIL PROTECTED]> wrote:
> > >
> > > > I like especially the way J represents complex vectorfields. Do
you
> > know
> > > of
> > > > other software which has similar features?
> > >
> > > This is not taken after a particular software, or there isn't
> > > any software that I know of that does that, but it's not impossible
> > > that some math systems like Mathlab would be able to do that.
> > > The idea is fairly simple and fits into viewmat nicely
> > > (magnitude of complex number is just viewmat).
> > >
> > > The idea was inspired by a CG illustrations in a documentary
> > > about reconstructing the weather that contributed to
> > > the sinking of Spanish Armada off of the coast of Scotland
> > > and Ireland.
> > >
> > > Might be "Little Ice Age: Big Chill" (aired tomorrow)
> > > http://www.history.com/shows.do?action=detail&showId=173249
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
____________________________________________________________________________________
> > > No need to miss a message. Get email on-the-go
> > > with Yahoo! Mail for Mobile. Get started.
> > > http://mobile.yahoo.com/mail
> > >
----------------------------------------------------------------------
> > > For information about J forums see
http://www.jsoftware.com/forums.htm
> > >
> >
> >
> > Thank you,
> > I found this in the J-Documentation:
> > _________________________________
> > viewmatcc (v) view matrix in given child control
> >
> > [hue] viewmatcc mat;cc
> >
> > hue and mat are as for viewmat
> >
> > cc is the id of the isigraph control.
> > ________________________________________
> >
> > My question is where can I find:
> >
> > ______ cc the id of the isigraph control  _______
> >
> > Thanks again
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
>
>
> --
> Björn Helgason, Verkfræðingur
> Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
> 801 Grímsnes ,t-póst: [EMAIL PROTECTED]
> Skype: gosiminn, gsm: +3546985532
> Landslags og skrúðgarðagerð, gröfuþjónusta
> http://groups.google.com/group/J-Programming
>
>
> Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari
einfaldleikans
>
> góður kennari getur stigið á tær án þess að glansinn fari af skónum
>           /|_      .-----------------------------------.
>          ,'  .\  /  | Með léttri lund verður        |
>      ,--'    _,'   | Dagurinn í dag                     |
>     /       /       | Enn betri en gærdagurinn  |
>    (   -.  |        `-----------------------------------'
>    |     ) |        (\_ _/)
>   (`-.  '--.)       (='.'=)
>    `. )----'        (")_(")
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
Thanks a lot!
It works!
I guess there´s probably no simpler solution.
In the meantime I tried also to change the default-behaviour so that the
new
matrix is displayed in the old window (behave like "plot-command")in
j601c\system\classes\view\viewmat.ijs till now without success.
Anyway thanks a lot!
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm




--
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
801 Grímsnes ,t-póst: [EMAIL PROTECTED]
Skype: gosiminn, gsm: +3546985532
Landslags og skrúðgarðagerð, gröfuþjónusta
http://groups.google.com/group/J-Programming


Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans

góður kennari getur stigið á tær án þess að glansinn fari af skónum
         /|_      .-----------------------------------.
        ,'  .\  /  | Með léttri lund verður        |
    ,--'    _,'   | Dagurinn í dag                     |
   /       /       | Enn betri en gærdagurinn  |
  (   -.  |        `-----------------------------------'
  |     ) |        (\_ _/)
 (`-.  '--.)       (='.'=)
  `. )----'        (")_(")
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to