Here's a pattern for "wd setlocale" from jsplitter.ijs:
(PID,'_',ID,'_paint')=: paint
(PID,'_',ID,'_mbldown')=: mbldown
(PID,'_',ID,'_mblup')=: mblup
(PID,'_',ID,'_mmove')=: mmove
HWNDC=: wd 'qhwndc ',ID
wd 'setlocale ',ID,' ',>coname''
It seems to beat the raison d'etre of "wd setlocale":
if it is necessary to create event verbs
for each control instance, that's no better
than before--when such event verbs were defined
in parent form as handlers in control locale:
(PID,'_',ID,'_mmove')=: ('mmove_',ctl_loc,'_')~
what would be really nice, is if it weren't necessary
to define event verbs; "wd setlocale" should suffice
to tell that for such parent and for such child id
here's the locale (control instance) that would have
the handelrs in the simple form "mmove" (without "PID_ID_"):
mmove=: 3 : 0
... do move
)
Maybe it's already there and somebody does not
fully understand something. If it's not there it
should be easy to realize such logic in the main
wdhandeler based on the wdq values.
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm