Thanks for the info on wd 'qd'  Bill

I ran into this problem earlier and used some awkward assignments to  
the box (edit box) since I didn't know that the query could be forced.  
Nice trick.

The empty list issue might be rectified by displaying an 'Enter tacit  
sentence into edit box' message in the tdisp (listbox) if the box  
(edit box) is empty. I think this might be a friendlier introduction  
for users who forget to use a meaningful argument with display.

When you say 'graphic box drawing', do you mean the Unicode characters  
or is there another way to display the box components in an even  
cleaner way? Either way, I agree that the display should be made as  
clear as possible.

Cheers, bob

On -Apr29-2009, at -Apr29-20097:33 AM, bill lam 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.
>
>>
>> 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

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to