I would like to implement two editable grids, each on one tab of a tab control. So far I can get the two grids to display but they do not respond to the mouse ie can't scroll them and they can't be editted.

I have three scripts:
- Two 'grid' scripts which are based on example 1 of grid_class.htm. Each loads into separate locale (loc1 and loc2)

CELLDATA=: *./~i.20
GRIDPID=:'gdemo1'
GRIDID=:'grid1'
GRIDLOC=:'grid1'

GDEMO=: 0 : 0
pc gdemo1;
xywh 0 0 200 100;cc grid1 isigraph;
pas 0 0;
rem form end;
)

gdemo1_run=: 3 : 0
GRIDOPTS=:'celldata gridpid gridid gridloc'
wd GDEMO
grid1=: 'loc1' conew 'jzgrid'
show__grid1 GRIDOPTS
wd 'pshow'
)

- A single tab-control script which is based on the controls demo:

onetab_run=: 3 : 0
TABIX=:0
wd ONETAB
tabgroups=:'gdemo1';'gdemo2' NB. child's pc param must agree
wd 'set tone "Tabnr1" "Tabnr2"'
wd 'creategroup tone'
gdemo1_run_loc1_ 1 NB. make locale explicit?
gdemo2_run_loc2_ 1
wd 'creategroup'
wd 'setshow gdemo1 1'
NB. initialize form here
wd 'pshow;'
)

Any insights for this novice programmer gratefully received.

_________________________________________________________________
MSN Hotmail is evolving – check out the new Windows Live Mail http://ideas.live.com

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

Reply via email to