On Wed, 29 Apr 2009, Brian Schott wrote:
> Ric's code includes a similar phrase, but it does not work for me in
> the way I prefer (on my Mac) with keystrokes.
you may try add closeok style to the parent form because it does not
require cleanup for this particular case.
pc display closeok dialog;
In window it closes by pressing ESC, not sure if Mac also called it
ESC.
>
> Another problem for me is that the wdget does not seem to work for me
> on my Mac. I get the following error upon loading the script.
>
> |index error: wdget
> | vls {~nms i.,&.>x
sidx=. {. 2 4 5 6 2 {~ I. 99".> RBFORMAT wdget wd'qd'
That error occurs because wdq is assigned by wdhandler when some event
happened, but during startup there is not yet any event so wdq is not
defined (or may be it is from the previous run). the wd'qd' command
is query parent form data.
I found that calling display '' will cause error as suggested by the
last line of the script, it is mandatory to supply some string to
display when calling .
I also suggest to force use graphic box drawing, otherwise the tree
format for tacit forms such as ++- will be difficult to read.
This is a nice exercise of gui programming.
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩152 白居易 賦得古原草送別
離離原上草 一歲一枯榮 野火燒不盡 春風吹又生
遠芳侵古道 晴翠接荒城 又送王孫去 萋萋滿別情
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm