Jskad/extensions/calpa/Docs/html/guide-Forms-accesskey.html

103 lines
2.4 KiB
HTML
Raw Normal View History

2003-07-05 22:13:17 +00:00
<HTML>
<BODY bgcolor=ffffff>
<P>
<TABLE width=100% cellspacing=0 cellpadding=0>
<TR>
<TD>
<FONT size=-1><B>CalHTMLPane v2.0 Guide</B></FONT>
</TD>
<TD align=right>
<FONT size=-1><B>Example Tag Usage</B></FONT>
</TD>
</TR>
</TABLE>
<HR width=100% size=1 color=black>
<P>
<FONT size=+1><B>2: Forms</B></FONT>
<P>
<BLOCKQUOTE>
<P>
<B>Attr: accesskey</B><BR>
<P>
<TABLE border cellpadding=6 align=center>
<TR>
<TD>
<B>Synopsis:</B><BR>
Use this attribute to give a keyboard accelerator to a form component.
<P>For form buttons created with the INPUT tag the button text will show
the accelerator underlined.
<P>For other controls the U (underline) tag can be used to mark the key
accelerator.
<P>Note that the LABEL tag can be used to pass focus to another form
component by using the <B>for</B> attribute (see HTML4.0 spec).
<P>
</TD>
</TR>
<TR>
<TD>
<B>Example:</B>
<P>
<table align=center bgcolor=ffffdd cellspacing=0 cellpadding=4 rules=none bordercolor=black frame=border>
<tr>
<td><FONT color=navy>
&lt;P align=center&gt;<BR>
&lt;INPUT type=button value="Press me" accesskey="P"&gt;&nbsp;&nbsp;<BR>
Your &lt;U&gt;n&lt;/U&gt;ame: &lt;INPUT type=text accesskey=n&gt;<BR>
&lt;P align=center&gt;<BR>
&lt;LABEL bgcolor=white for=mycombo accesskey='c'&gt;&lt;U&gt;C&lt;/U&gt;omposer&lt;/LABEL&gt;<BR>
&lt;SELECT id=mycombo&gt;<BR>
<code>&nbsp;&nbsp;</code>&lt;OPTION&gt;Mozart<BR>
<code>&nbsp;&nbsp;</code>&lt;OPTION&gt;Schubert<BR>
<code>&nbsp;&nbsp;</code>&lt;OPTION&gt;Bach<BR>
&lt;/SELECT&gt;<BR>
</td>
</tr>
</table>
<P>
<TR><TD>
<B>Rendering:</B>
<FONT color=red size=-1>Note: Java 1.2 has a bug (no. 4159610) relating to this example. If
the textfield has focus and an accelerator is used for a different control, the
accelerator character will show within the textfield</FONT>
<P align=center>
<INPUT type=button value="Press me" accesskey="P">&nbsp;&nbsp;
Your <U>n</U>ame: <INPUT type=text accesskey=n>
<P align=center>
<LABEL bgcolor=white for=mycombo accesskey='c'><U>C</U>omposer</LABEL>
<SELECT id=mycombo>
<OPTION>Mozart
<OPTION>Schubert
<OPTION>Bach
</SELECT>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BLOCKQUOTE>
<TABLE align=center width=50%>
<TR>
<TD align=center>
<A href="../CalGuide.html">Guide Index</A> &nbsp;&#124;
<A href="../javadoc/overview-tree.html">&nbsp;JavaDoc</A> &nbsp;&#124;
<A href="guide-Forms-labeltag.html">&nbsp;Previous</A> &nbsp;&#124;
<A href="guide-Frames-iframe.html">&nbsp;Next</A>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>