[Jprogramming] How to get grid clicks in J7 GTK grid?

Henry Rich HenryHRich at nc.rr.com
Mon Dec 31 01:15:38 UTC 2012


PS. I found

http://www.jsoftware.com/download/gtkwin32.zip

but what would I do with that?

Henry Rich

On 12/30/2012 8:12 PM, Henry Rich wrote:
> OK.  How do I update the GTK binary?  I went to the GTK site but it said
> it wasn't for end-users like me.
>
> I can test only on Windows GTK2, but I will do that once I update.
>
> 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
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm


More information about the Programming mailing list