|
From: <abe...@al...> - 2000-11-30 18:07:11
|
netscape... yes you are right, it doesn't works in ns as it is now; but
let me see, maybe there is a way!
im working on it right now...
And dynamic objects can use this technic; if not, what is the purpose of
discussing this in the list?
However, if after some investigation it seems not possible to do something
similar in every browser supported by DynAPI then i'll just abdicate and
start over again with another idea. By principle, im just trying not to
overcharge things.
-----Original Message-----
From: dyn...@li...
[mailto:dyn...@li...]On Behalf Of Brandon Myers
Sent: Miércoles, 29 de Noviembre de 2000 09:54 p.m.
To: dyn...@li...
Subject: Re: [Dynapi-Dev] Widgit creation - Tab and Focus
of course, that only works in IE. What about netscape? And what about
focusing dynamic objects?
Let's work with the problem presented, and not provide a solution that
can't be used.
Focus manager is easy when there is a "Helper" event watcher that will
capture events on all objects of a specific class.
----- Original Message -----
From: Abel Eduardo Cantú Salas
To: dyn...@li...
Sent: Wednesday, November 29, 2000 10:09 PM
Subject: RE: [Dynapi-Dev] Widgit creation - Tab and Focus
Ups! this is a better version of test.htm :D
-----Original Message-----
From: dyn...@li...
[mailto:dyn...@li...]On Behalf Of Abel Eduardo
Cantú Salas
Sent: Miércoles, 29 de Noviembre de 2000 08:31 p.m.
To: dyn...@li...
Subject: RE: [Dynapi-Dev] Widgit creation - Tab and Focus
related to the management of keystrokes, focus and blur events in
events.js
------------------------------------------------------------------------
----
My idea is less complicated (i think) and requires fewer code. Instead
of
creating a more complex object that manages a list of widgets and
bubbles
the focus events, just leave the browser window take care of it.
Here is an example using dhtm (not dynapi) IMPORTANT: it works only in
ie 5
(i not warrant that this html will look fine in other browser, but maybe
ie
5.5 or 4.x):
see attached file.
------------------
what im doing right now with dynapi is something like this:
1) saving the original DynLayer createElement in a separated pointer
(inherited_createElement) on my widget.
2) overwriting this createElement method
2.1) in this overwrote method i call the inherited_createElement
2.2) after that, i add the anchor tag using insertAdjacentHTML method
3) i think thats it!
Everybody requiring this functionality just will need to base their own
widgets on this one and Presto!, we have widgets that can take focus not
just by clicking but using the tab key also.
However we need to review events.js and add the capability to manage
focus,
blur and keydown events so we can do everything just using common
eventListeners, im still having problems there because it stills working
only in ie. But i hope that somebody more familiar to ns will solve
these
problems someday... What i need for now is get this thing working on IE
under a Win environment a soon as posible: A widget that copies the
behavior
of a TStringGrid (developers familiar with Delphi will know whats that)
and
time is almost over!
cheers guys!
-----Original Message-----
From: dyn...@li...
[mailto:dyn...@li...]On Behalf Of Darin
Kadrioski
Sent: Miércoles, 29 de Noviembre de 2000 05:57 p.m.
To: DynAPI Dev (E-mail)
Subject: [Dynapi-Dev] Widgit creation - Tab and Focus
Heya guys,
Scott and I had a brief thread going last spring about having the
concept of
"focus" shared amongst many widgits on the same page.
This is to facilitate "tabbing" between controls and the blinking of
"carets" for edits, etc...
One thought was to have a global constructor that each widgit would
"register" with. The Dynapi would keep a list of the widgits in the
order
they were created, this then becomes the "tab order". Assuming we can
successfully trap the tab key in both browsers, the dynapi would catch
it
first before bubbling it to the widgets. It would then send an OnBlur()
event to whichever control currently had focus and an OnFocus() event to
the
next in the list.
Any thoughts on if this could be acheived? Anyone else see the need for
it?
Also, how about a "standard" construction call for widgit builders to
use?
Something like create(x,y,w,h,fgcolor,bgcolor,skin)
And maybe a set of standard events.
refresh() comes to mind.
-cheers!
--------------------------------------------------
Darin Kadrioski
Applications/Internet Developer
> Electronic Freight Exchange, Corp.
dka...@ef...
(916) 933-0724 x315
_______________________________________________
Dynapi-Dev mailing list
Dyn...@li...
http://lists.sourceforge.net/mailman/listinfo/dynapi-dev
|