[Jprogramming] How to get grid clicks in J7 GTK grid?
Henry Rich
HenryHRich at nc.rr.com
Mon Dec 31 00:45:21 UTC 2012
Yes, I just did. Load that on J6.02, it runs. J7, no click events.
I just added the missing lines from your script.
In my first request, I didn't think I was reporting a bug; I assumed
that I didn't know what I was doing.
script follows (again)
Henry Rich
require 'gtkwd grid'
cocurrent 'm1'
DISSECT=: 0 : 0
pc dissect closeok;
xywh 3 43 457 414;cc parsegrid isigraph rightscale bottomscale;
)
NB. grid control:
parsegrid=: '' conew 'jzgrid'
NB. setup:
foo=: 3 : 0
wd DISSECT
wd^:(-.IFJ6) 'pshow;pshow sw_hide'
setnames__parsegrid ('GRIDID';'parsegrid')
setnames__parsegrid ('GRIDHWNDC',&<wd 'qhwndc parsegrid')
setnames__parsegrid ('GRIDPID',&<'dissect')
celldata =: 'abc';'def';'ghi'
celledit =: 1 1 1
show__parsegrid _2 ]\ ('CELLDATA',&<celldata),('CELLEDIT',&<celledit)
wd 'pshow'
evtloop^:(-.IFJ6)''
)
NB. handler:
parsegrid_gridhandler =: 3 : 0
smoutput 'grid event!'
)
foo''
More information about the Programming
mailing list