[Jprogramming] viewmat without a new window

Björn Helgason gosinn at gmail.com
Mon Feb 26 19:45:31 HKT 2007


And by the way these examples you can open in the form editor if you copy
the lines from the mail into a .ijs file/window
Then you can change the attributes and add more things to the form

2007/2/26, Björn Helgason <gosinn at gmail.com>:
>
> 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 <1000vincent at gmail.com>:
> >
> > 2007/2/26, Björn Helgason <gosinn at gmail.com>:
> > >
> > > 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 <1000vincent at gmail.com>:
> > > >
> > > > 2007/2/26, Oleg Kobchenko <olegykj at yahoo.com>:
> > > > >
> > > > > --- vincent 1000 <1000vincent at gmail.com > 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: gosinn at gmail.com
> > > 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: gosinn at gmail.com
> 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  |
>    (   -.  |        `-----------------------------------'
>    |     ) |        (\_ _/)
>   (`-.  '--.)       (='.'=)
>    `. )----'        (")_(")
>



-- 
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
801 Grímsnes ,t-póst: gosinn at gmail.com
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  |
   (   -.  |        `-----------------------------------'
   |     ) |        (\_ _/)
  (`-.  '--.)       (='.'=)
   `. )----'        (")_(")


More information about the Programming mailing list