From: <abe...@al...> - 2000-11-29 18:23:18
|
relative to the management of keystrokes events in events.js ------------------------------------------------------------ ok for now im doing little changes to event.js: i'd changed the captureMouseEvents DynLayer.prototype.captureMouseEvents=function() { if (!this.eventListeners) this.eventListeners=[] this.hasEventListeners=true if (!this.created) return false var elm=this.elm //--******-- if (is.ns4) elm.captureEvents(Event.KEYDOWN | Event.MOUSEDOWN | Event.MOUSEUP | Event.CLICK | Event.DBLCLICK) elm.onkeypress=elm.onfocus=elm.onblur=elm.onmousedown=elm.onmouseup= elm.onmouseover=elm.onmouseout=elm.onclick=elm.ondblclick= DynLayer.prototype.EventMethod //--******-- if (is.ie5) this.elm.oncontextmenu=function() {return false} } it seems to work correctly in IE. However, on netscape (4.7) the onkeypress event never arises an the use of alert() inside the onfocus event handler causes an infinite loop :b Another problem that remains (in both browsers) is: The only way in which focus is triggered is thru a click, it is not possible to arise this event with the use of tab -> tab -> tab keys. however i think this will do the job: <a href="#" onclick="return false;" onfocus="document...layer.focus();"> <div id="layer" ...> </a> but looking at the DynLayer.createElement method, i just can't figure out how to put an <a> tag working in conjunction with the element being created without afecting the behavior of those DynLayers who don't need this anchor... Is it posible to overwrite the createElement method in a derived class? i thougt so... im trying it right now. Any suggestions, thanks! -----Original Message----- From: dyn...@li... [mailto:dyn...@li...]On Behalf Of Pascal Bestebroer Sent: Miércoles, 29 de Noviembre de 2000 02:12 a.m. To: dyn...@li... Subject: RE: [Dynapi-Help] new to DynApi 2 it's on my list of todo's :) Pascal Bestebroer pb...@oi... http://www.oibv.com -----Oorspronkelijk bericht----- Van: dyn...@li... [mailto:dyn...@li...]Namens Scott Andrew LePera Verzonden: woensdag 29 november 2000 8:52 Aan: dyn...@li... Onderwerp: Re: [Dynapi-Help] new to DynApi 2 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 _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help |