attached is a script for testing.

in window
combolist / combodrop / combobox / listbox all trigger button event on pressing the enterkey.

but in java
combolist does not trigger button event.

NB. =========================================================
TEST=: 0 : 0
pc test closeok;
xywh 22 27 60 60;cc cc combolist;
xywh 86 27 60 60;cc cd combodrop;
xywh 155 23 60 60;cc cb combobox;
xywh 23 51 60 60;cc ll listbox;
pas 6 6;pcenter;
rem form end;
)

test_run=: 3 : 0
wd TEST
NB. initialize form here
wd 'set cc ','aa bb cc'
wd 'set cb ','aa bb cc'
wd 'set cd ','aa bb cc'
wd 'set ll ','aa bb cc'
wd 'pshow;'
)

test_close=: 3 : 0
wd'pclose'
)

test_cc_select=: 3 : 0
1!:2&2 'cc select'
)

test_cc_button=: 3 : 0
1!:2&2 'cc button'
)

test_cd_select=: 3 : 0
1!:2&2 'cd select'
)

test_cd_button=: 3 : 0
1!:2&2 'cd button'
)

test_cb_select=: 3 : 0
1!:2&2 'cb select'
)

test_cb_button=: 3 : 0
1!:2&2 'cb button'
)


test_ll_select=: 3 : 0
1!:2&2 'll select'
)

test_ll_button=: 3 : 0
1!:2&2 'll button'
)
NB. =========================================================

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

Reply via email to