Hi -

I'm attempting a simple wd form and am frustrated as it looks like it
should be very simple but has a weird appearance for no apparent reason.
My code looks like this:

coclass 'Input'
> ioForm=: 0 : 0
> bin v
> bin h;cc inlbl static left;cn "Input file ";cc inpfl edit;bin z;
> bin h;cc oulbl static left;cn "Output file";cc outpfl edit;bin z;
> bin z
> )
> ioFiles=: 3 : 0
>    wd 'pc iofiles;pn "Input/Output Files"'
>    wd ioForm [ wd 'minwh 220 40'
>    flnm=. setInputFile ''
>    wd 'pshow'
>    wd 'set inpfl text ',flnm
>    wd 'set outpfl text ',(] {.~ [:>:'/' i:~ ]) flnm  NB. Same dir
>    wd 'set outpfl focus'
> )
> ioFiles_close=: 3 : 0
>    wd 'pclose'
> )


I want it to look like this after the user selects an input file:

Input file    |C:\path\to\input.txt   |
Output File |C:\path\to\                |

but the input field after "Input file" looks to be right-justified and
shorter than the input field below it.  I've tried pre-filling it with
spaces and such, but no luck.

If I call "wd ioForm" twice, the 2nd instance of it looks the way I want it
to but then there are two of them.  Maybe there's some mystery command I
need before the first input field definition?  Anyway, it would be helpful
if there were some working examples of using "wd" but the what I've found
appears to be quite old - oriented to the J 6.02 wd.

Any ideas or tips to help me make progress on this?

Thanks,

Devon


-- 
Devon McCormick, CFA
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to