run by test_run'' and press the btn and choose any file, wd'mbopen' will not return a string but instead a box array, possible from <;._2
   test_run ''
abc
abc
abc
abc
abc
abc
abc
+-------------+--------+
|/home/bill/Ti|ercat.pn|
+-------------+--------+
abc
abc
abc


the file name should be
/home/bill/Tigercat.png

if disable the timer, it run ok.


NB. =========================================================
cocurrent 'base'
TEST=: 0 : 0
pc test;
xywh 0 0 48 12;cc btn button;cn "btn";
pas 6 6;pcenter;
rem form end;
)

test_run=: 3 : 0
wd'timer 1000'
wd TEST
NB. initialize form here
wd 'pshow;'
)

test_close=: 3 : 0
wd'timer 0'
wd'pclose'
)

timer=: 3 : 0
1!:2&2 'abc'
)

test_btn_button=: 3 : 0
1!:2&2 wd 'mbopen'
)

sys_timer_z_=: timer_base_
NB. =========================================================

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

Reply via email to