Bill, On Wed, Apr 29, 2009 at 10:33 AM, bill lam <bbill....@gmail.com> wrote: > 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. > Adding closeok to the pc display had no effect on my Mac.
>> >> 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' Yes, changing the sidx value changed the error message. And that error message does not occur if a string is supplied for display '<j code>' as you suggest below. > > 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. > > -- Thanks, -- (B=) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm