Up to calling wdhandler is fine. The problem is in what wdhanlder is calling. It is currently calling verb: PID_CID_event''
So it prevents having generic controls without creating every time the cascade of verbs: PID_CID_event=: event for each instance. To fix this, wdhandeler should call simply event'' if it exists or proceed as it does right now otherwise. --- Eric Iverson <[EMAIL PROTECTED]> wrote: > I haven't had a chance to study your messages so this is comment may be > completely off base. > > The intent of wd'setlocale' is that wdhandler is called in the desired > locale. In the splitter example this would be in the object locale of the > splitter class. There should be no requirement for wdhandler to look at > syslocalec, just as there is no need for it to look as syslocalep. > > ----- Original Message ----- > From: "Oleg Kobchenko" <[EMAIL PROTECTED]> > To: "General forum" <[email protected]> > Sent: Friday, March 14, 2008 11:55 PM > Subject: [Jgeneral] wd setlocale > > > > 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 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
