From: Scott A. L. <sc...@sc...> - 2000-11-29 00:23:37
|
Yeah, but that's pretty old, though :-) You can probably hack it for your own purposes, though. To the issue of DynLayers having "focus"...you can simulate that by creating a focus manager object. A focus manager has an array that holds DynLayers you assign to it to manage. Then, all you have to do is decide what user actions give a DynLayer focus. For example, you can assign a mousedown eventlistener to a DynLayer that invokes a focus event on the DynLayer. Invoking focus on a DynLayer acitvates the focus manager. The focus manager first checks it's array of DynLayers to make sure it's responsible for the one that was clicked on, then assigns that layer to the "currently focused item" property. So if you want to know which DynLayer has focus, you just get it from the focus manager, something like "FocusManager.currentItem" or something. Okay, somebody build it. -- scott andrew lepera ----------------------------------- web stuff: www.scottandrew.com music stuff: www.walkingbirds.com "Richard :o)" wrote: > > hi, > Scott has a keypress widget here: > http://www.scottandrew.com/dhtml/docs/ > cheers, > Richard:o) > > ----- Original Message ----- > From: "Abel Eduardo Cantú Salas" <abe...@al...> > To: <dyn...@li...> > Sent: Tuesday, November 28, 2000 7:47 PM > Subject: RE: [Dynapi-Help] new to DynApi 2 > > > im in the same situation. We need some more documentation however, i > assume > > we all are very busy people... We have troubles. > > > > well, right now im wondering how to capture keyboard events (using an > > structure similar to events.js) and how to manage (if it is posible) the > > onfocus event... Actually i don't know how to generate onfocus event using > > the cursor arrows, as long as i know, theres no way in wich a DynLayer can > > receive focus. > > > > i remember a tutorial for DynApi that describes the ways of capturing > > keyboard events (im going to it right now)... but what about onfocus? > > somebody can giveme any reference? > > > > thanks!. > > > > -----Original Message----- > > From: dyn...@li... > > [mailto:dyn...@li...]On Behalf Of Dave > > Rattray > > Sent: Martes, 28 de Noviembre de 2000 06:46 a.m. > > To: dyn...@li... > > Subject: [Dynapi-Help] new to DynApi 2 > > > > > > I'm new to this version of DynApi and am having trouble getting to grips > > with it. I downloaded the link that Dan provided: > > > > http://fury161.dyndns.org/dynapi-2000.11.07-danwidgets.zip > > > > but didn't see any clear cut files showing me Scrollpane, Scrollbar, > Button, > > Label, ButtonImage and PushPanel. Am I overlooking something? Can someone > > point me in the right direction. > > > > I found the tutorials on dansteinman.com for the original DynAPI dynlayer > > very useful in learning everything but have not found anything like that > so > > far for DynAPI 2. > > > > I need help basically in the knowledge of how images are swapped in this > new > > version within layers and how to do the scroll window. > > > > Help?! > > > > > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > > ____________________________________________________________ > > Get your FREE personal .com domain name and > > NAMEzero Personal Portal at: http://www.namezero.com. > > For customer service, mailto:cus...@na.... > > > > > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help |