xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralf Siegel <r...@audiofarm.de>
Subject focus with tab control / tabindex
Date Wed, 18 Jun 2003 22:41:16 GMT
Can you switch focus between svg-elements using the tab control?! What I'm 
trying to do and what works fine so far in Batik 1.5 Beta5: The following 
simple SVG fills the rect-shapes blue when entering with your mouse, and 
red on leaving.
_________________________________________________________________________

<?xml version="1.0" ?>
<svg>
<script type="text/ecmascript">

         function renderFocus(e) {
                 e.target.setAttribute('fill','#0000FF');
         }

         function reset(e) {
                 e.target.setAttribute('fill','#FF0000');
         }

</script>
<title>Focus</title>
         <rect x="50" y="10" width="100" height="20" fill="#FF0000"
                 onfocusin="renderFocus(evt);" onfocusout="reset(evt);"/>
         <rect x="50" y="40" width="100" height="20" fill="#FF0000"
                 onfocusin="renderFocus(evt);" onfocusout="reset(evt);"/>
         <rect x="50" y="70" width="100" height="20" fill="#FF0000"
                 onfocusin="renderFocus(evt);" onfocusout="reset(evt);"/>
         <rect x="50" y="100" width="100" height="20" fill="#FF0000"
                 onfocusin="renderFocus(evt);" onfocusout="reset(evt);"/>
</svg>

_________________________________________________________________________

How can the same be accomplished by means of the tab control? I have 
fiddled around quite a while to no avail.

Does SVG (and Batik) support a tabindex attribute?

ralf ...


-------------------------------------------------------------
Ralf Siegel - Freelance Developer
Recommended Listening: Enon - High Society (Touch & Go)
contact_site: mailto:ralf@audiofarm.de
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message