Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Thu, 26 Jan 2006 08:26:02 -0800,    group: microsoft.public.inetsdk.programming.html_objmodel        back       


Problem formatting button text   
I need to format the text in an input/button to say "Close", where the "C" is 
underlined, but the rest of the text is not.  This is to replicate Window's 
functionality that allows a user to use control shortcut keys for buttons on 
the page.  Maybe this is something really simple that I just haven't heard 
of, but how do I get the text formatted in the button with only one letter 
underlined?  Thanks.
date: Thu, 26 Jan 2006 08:26:02 -0800   author:   Harry Keck

Re: Problem formatting button text   
Harry Keck  wrote:
> I need to format the text in an input/button to say "Close", where
> the "C" is underlined, but the rest of the text is not.

<button><u>C</u>lose</button>

See also accesskey attribute.
-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925
date: Thu, 26 Jan 2006 11:35:13 -0500   author:   Igor Tandetnik

Re: Problem formatting button text   
Interesting.  I didn't even know such a thing as a button existed.  I have 
been using input controls of type button.  If I have to, I will convert my 
code to use buttons, but is there a way to get this level of formatting with 
an input of type button, as this is how ASP.Net renders its button controls?

"Igor Tandetnik" wrote:

> Harry Keck  wrote:
> > I need to format the text in an input/button to say "Close", where
> > the "C" is underlined, but the rest of the text is not.
> 
> <button><u>C</u>lose</button>
> 
> See also accesskey attribute.
> -- 
> With best wishes,
>     Igor Tandetnik
> 
> With sufficient thrust, pigs fly just fine. However, this is not 
> necessarily a good idea. It is hard to be sure where they are going to 
> land, and it could be dangerous sitting under them as they fly 
> overhead. -- RFC 1925
> 
> 
>
date: Thu, 26 Jan 2006 10:28:05 -0800   author:   Harry Keck

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us