[Jprogramming] Using wd
bill lam
bbill.lam at gmail.com
Fri Feb 3 16:28:56 HKT 2012
Did you run the control demos as suggested? Anyway this is a minimal
script for you to test.
==============================================
NB. change the file name of bmp before test
NB. use absolute path name, NOT ~temp or similar
coclass 'toucan'
FORM=: 0 : 0
pc form closeok;
xywh 0 0 100 100;cc b1 button bs_ownerdraw;
cn "/home/bill/toucan.bmp";
)
run=: 3 : 0
wd FORM
wd 'pshow'
)
run''
==============================================
Птн, 03 Фев 2012, Linda Alvord писал(а):
> I got the toucan in J602
>
> I moved the toucan to temp J701 and got:
>
>
> jijs saved: c:/users/owner/j701-user/temp/a000 isigraph.ijs
> require 'bmp gl2'
>
> DAT=: readbmp jpath '~temp\toucan.bmp'
> DAT=: 256 #. |."1 [ 256 256 256 #: DAT
>
> It read the "toucan" but the error in red when I ran the file was:
>
> |domain error: scriptd | DAT=:256#.|."1[256 256 256 #:DAT |[-3]
> c:\users\owner\j701-user\temp\a000 isigraph.ijs
>
> I struggled a lot with "scripted" with random numbers but this is beyond me.
>
> Maybe it will help somebody.
>
> Thanks.
>
> Linda
>
> -----Original Message-----
> From: programming-bounces at jsoftware.com
> [mailto:programming-bounces at jsoftware.com] On Behalf Of Gilles Kirouac
> Sent: Thursday, February 02, 2012 4:20 PM
> To: Programming forum
> Subject: Re: [Jprogramming] Using wd
>
> Linda
>
> See
>
> http://www.jsoftware.com/pipermail/beta/2006-March/000607.html
>
> "You need the picture as a bitmap" (Chris). A bitmap can be displayed
> in an Isigraph control in J6.
>
> In J6, the Isigraph control is described in the User Manual
>
> ...j602/help/user/script_isigraph.htm
>
> I do not know if the quite new wd emulation in J7 supports
> the isigraph control.
>
> ~ Gilles
>
>
> ---------- Original Message -----------
> From: "Linda Alvord" <lindaalvord at verizon.net>
> To: "'Programming forum'" <programming at jsoftware.com>
> Sent: Thu, 02 Feb 2012 05:05:18 -0500
> Subject: [Jprogramming] Using wd
>
> > This worked in J406
> >
> > load 'c:\j406\willie\readwillie 2.ijs'
> >
> > |domain error: wd
> >
> > | wd picture=:'xywh ',(":w,h,((-2*w)+w*na),h*nd),';cc board
> > isipicture'
> > ...
> ------- End of Original Message -------
>
> ----------------------------------------------------------------------
> 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
More information about the Programming
mailing list