[Jprogramming] How to get grid clicks in J7 GTK grid?
Henry Rich
HenryHRich at nc.rr.com
Mon Dec 31 01:21:37 UTC 2012
OK, I refreshed all addons and now it works. So it was something is the
addons (not the base or GTK) that was causing the problem).
I still would not know how to update GTK if that were needed.
Henry Rich
On 12/30/2012 8:04 PM, bill lam wrote:
> That's strange. The script with noun works for me on 64-bit linux and
> 32/64-bit wine gtk2 and gtk3. Could you update gtk binary ,base library
> and all addons and test again on window and linux, for gtk2 and gtk3?
>
> Вс., 30 дек. 2012, Henry Rich писал(а):
>> 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''
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list