On Wed, 01 Oct 2008, Henry Rich wrote:

> I have been working for a long time on why I don't get a
> button event for my listbox and I think I have found out why.
> 
> It seems that if I load a form and then change a handler, it
> continues to execute the old handler.  It is as if my
> handler has been copied somewhere where I can't change it.
> Likewise, setting form_default after the form is loaded
> has no effect.
> 
> Can anybody confirm this?  And also confirm that it didn't used
> to do this (just for my own peace of mind)?
> 
> And if that's right, can somebody give a quick description of
> when & where the verbs are snapshotted and whether there is a way
> to change the setting? 

I'm not sure what is your problem because I've never changed event
handler that way. I think that everything is already mentioned in J
user manual. In particular, suppose you create a form in locale 1234,
then in response all events for that form, the front-end will execute

wdhandler_1234_ ''

eg, ijx is at locale 0, (can be checked by wdform''), so that after
executing the following line

0!:0 'wdhandler_0_=: 1!:2&2 bind ''hello'''

no matter which menu item you click, it just print hello.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to