Here's a change to wdhandler_z_ that will allow to omit
the first four lines in the example below.
--------------------------------------------------------
wd_hdl=. 3 {. wd_val
if. 0<#syslocalec do.
wd_hdl=. 2 ((~: i.@>:@[EMAIL PROTECTED]) #^:_1!.(<systype) ]) wd_hdl
end.
wd_ndx=. 1 i.~ 3 = 4!:0 wd_hdl
if. wd_ndx < #wd_hdl do.
wd_fn=. > wd_ndx { wd_hdl
--------------------------------------------------------
FIXME: a better way to insert an item into list?
--- Oleg Kobchenko <[EMAIL PROTECTED]> wrote:
> 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
>
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm