My code for creating a very simple jqt form:
fileman =: 3 : 0
wd 'pc root'
wd 'bin h'
wd 'cc bt1 button; cc bt2 button'
wd 'bin v'
wd 'cc e1 edit'
wd 'cc lb listbox'
wd 'pshow'
)
root_close=: 3 : 0
wd 'pclose'
)
root_bt1_button=: 3 : 0
data =: 1!:0 < 'icons'
smoutput data
smoutput 'set lb items ' ,( , > 0{"1 data)
wd 'set lb items ' ,( , > 0{"1 data)
wd 'pshow'
)
I have 2 questions about my above code:
1. Why is the shape of > 0{"1 data 1 5 ? I had to do "," to reshape it to 5
so I could append to the string 'set lb items '
2. To append a name to the items of a listbox, is my method standard? It seems
to work, so I'm happy with it.
(Note: to test this you should have the icons folder in the default location,
or change it to another folder)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm