Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Windows Menus In A Web Page


Message #1 by "J Donahue" <jdonahue@f...> on Thu, 8 Aug 2002 20:23:04
One of the managers in a different department has started playing with 
Windows apps.  He seems really impressed that he can make a windows menu 
with the <alt>+letter to activate the menu item.
He's indicated that if we were doing a "professional" application we'd 
have something similiar in our web pages.  He says he doesn't want to 
have to move his hands from the keyboard to use the mouse to click a link 
so he wants us to put windows-type menus in the web page activated by 
<alt>+letter.
In addition, he wants our "Click Here To Continue" buttons to have the 
appropriate letter underlined so he knows which <alt>+letter sequence to 
push.
I have no problem writing the code to handle the <alt>+etc event but I'm 
curious...anyone have a way of getting the button value to say "Click 
Here To Continue" with the first "C" underlined besides creating jpg's or 
gif's???
Message #2 by "Albert Davis" <albertdavis@h...> on Thu, 08 Aug 2002 15:20:30 -0400
<a href="?" style="text-decoration:underline;">C</a><a href="?" 
style="text-decoration:none;">lick Here To Continue</a>

>From: "J Donahue" <jdonahue@f...>
>Reply-To: "ASP+" <aspx@p...>
>To: "ASP+" <aspx@p...>
>Subject: [aspx] Windows Menus In A Web Page
>Date: Thu, 8 Aug 2002 20:23:04
>
>One of the managers in a different department has started playing with
>Windows apps.  He seems really impressed that he can make a windows menu
>with the <alt>+letter to activate the menu item.
>He's indicated that if we were doing a "professional" application we'd
>have something similiar in our web pages.  He says he doesn't want to
>have to move his hands from the keyboard to use the mouse to click a link
>so he wants us to put windows-type menus in the web page activated by
><alt>+letter.
>In addition, he wants our "Click Here To Continue" buttons to have the
>appropriate letter underlined so he knows which <alt>+letter sequence to
>push.
>I have no problem writing the code to handle the <alt>+etc event but I'm
>curious...anyone have a way of getting the button value to say "Click
>Here To Continue" with the first "C" underlined besides creating jpg's or
>gif's???




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

Message #3 by "J Donahue" <jdonahue@f...> on Thu, 8 Aug 2002 20:38:39
Thanks Albert...but how about a "button" of the sort <asp:button> or 
<input value="Click Here To Continue">????  Following what you did below, 
I'd have 2 buttons side by side as  [C][lick Here]

Jim

> <a href="?" style="text-decoration:underline;">C</a><a href="?" 
style="text-decoration:none;">lick Here To Continue</a>

>From: "J Donahue" <jdonahue@f...>
>Reply-To: "ASP+" <aspx@p...>
>To: "ASP+" <aspx@p...>
>Subject: [aspx] Windows Menus In A Web Page
>Date: Thu, 8 Aug 2002 20:23:04
>
>One of the managers in a different department has started playing with
>Windows apps.  He seems really impressed that he can make a windows menu
>with the <alt>+letter to activate the menu item.
>He's indicated that if we were doing a "professional" application we'd
>have something similiar in our web pages.  He says he doesn't want to
>have to move his hands from the keyboard to use the mouse to click a link
>so he wants us to put windows-type menus in the web page activated by
><alt>+letter.
>In addition, he wants our "Click Here To Continue" buttons to have the
>appropriate letter underlined so he knows which <alt>+letter sequence to
>push.
>I have no problem writing the code to handle the <alt>+etc event but I'm
>curious...anyone have a way of getting the button value to say "Click
>Here To Continue" with the first "C" underlined besides creating jpg's or
>gif's???




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

Message #4 by Feduke Cntr Charles R <FedukeCR@m...> on Thu, 8 Aug 2002 15:31:42 -0400
	You shouldn't have to write any code to facilitate this.  In all of
your System.Web.UI.WebControls and .HtmlControls you'll notice an
"AccessKey" property which does what you want (which is called a neumonic I
believe).  Also in HTML you can use <u>L</u>etter to have the "L" appear
underlined, thus if you use <button> instead of <input type="button"> you
can do something to this effect:

<button accesskey="o"><u>O</u>pen</button>

HTH,
- Chuck

-----Original Message-----
From: J Donahue [mailto:jdonahue@f...]
Sent: Thursday, August 08, 2002 4:23 PM
To: ASP+
Subject: [aspx] Windows Menus In A Web Page


One of the managers in a different department has started playing with 
Windows apps.  He seems really impressed that he can make a windows menu 
with the <alt>+letter to activate the menu item.
He's indicated that if we were doing a "professional" application we'd 
have something similiar in our web pages.  He says he doesn't want to 
have to move his hands from the keyboard to use the mouse to click a link 
so he wants us to put windows-type menus in the web page activated by 
<alt>+letter.
In addition, he wants our "Click Here To Continue" buttons to have the 
appropriate letter underlined so he knows which <alt>+letter sequence to 
push.
I have no problem writing the code to handle the <alt>+etc event but I'm 
curious...anyone have a way of getting the button value to say "Click 
Here To Continue" with the first "C" underlined besides creating jpg's or 
gif's???
Message #5 by "Albert Davis" <albertdavis@h...> on Thu, 08 Aug 2002 15:59:57 -0400
What your really looking to use is the "accesskey" property.  Such as 
"accesskey=C" - then when a user in a key sequence hits Alt+C that object's 
click event will be fired off.  To my knowledge you can get the underline to 
work unless you set your button to an image src like you mentioned before.  
But you could beside the button have the caption "Alt+C".  You could also 
just use <a> as your clicking point as I described before.  If understand 
DHTML pretty well you could set the borders around an <a> tag to look and 
feel like a button...

hth,
Al


>From: "J Donahue" <jdonahue@f...>
>Reply-To: "ASP+" <aspx@p...>
>To: "ASP+" <aspx@p...>
>Subject: [aspx] Re: Windows Menus In A Web Page
>Date: Thu, 8 Aug 2002 20:38:39
>
>Thanks Albert...but how about a "button" of the sort <asp:button> or
><input value="Click Here To Continue">????  Following what you did below,
>I'd have 2 buttons side by side as  [C][lick Here]
>
>Jim
>
> > <a href="?" style="text-decoration:underline;">C</a><a href="?"
>style="text-decoration:none;">lick Here To Continue</a>
>
> >From: "J Donahue" <jdonahue@f...>
> >Reply-To: "ASP+" <aspx@p...>
> >To: "ASP+" <aspx@p...>
> >Subject: [aspx] Windows Menus In A Web Page
> >Date: Thu, 8 Aug 2002 20:23:04
> >
> >One of the managers in a different department has started playing with
> >Windows apps.  He seems really impressed that he can make a windows menu
> >with the <alt>+letter to activate the menu item.
> >He's indicated that if we were doing a "professional" application we'd
> >have something similiar in our web pages.  He says he doesn't want to
> >have to move his hands from the keyboard to use the mouse to click a link
> >so he wants us to put windows-type menus in the web page activated by
> ><alt>+letter.
> >In addition, he wants our "Click Here To Continue" buttons to have the
> >appropriate letter underlined so he knows which <alt>+letter sequence to
> >push.
> >I have no problem writing the code to handle the <alt>+etc event but I'm
> >curious...anyone have a way of getting the button value to say "Click
> >Here To Continue" with the first "C" underlined besides creating jpg's or
> >gif's???
>
>
>
>
>_________________________________________________________________
>Send and receive Hotmail on your mobile device: http://mobile.msn.com
>


_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

Message #6 by "J Donahue" <jdonahue@f...> on Thu, 8 Aug 2002 21:28:32
Thanks Albert & Chuck!!!

> What your really looking to use is the "accesskey" property.  Such as 
"accesskey=C" - then when a user in a key sequence hits Alt+C that 
object's 
click event will be fired off.  To my knowledge you can get the underline 
to 
work unless you set your button to an image src like you mentioned 
before.  
But you could beside the button have the caption "Alt+C".  You could also 
just use <a> as your clicking point as I described before.  If understand 
DHTML pretty well you could set the borders around an <a> tag to look and 
feel like a button...

hth,
Al


>From: "J Donahue" <jdonahue@f...>
>Reply-To: "ASP+" <aspx@p...>
>To: "ASP+" <aspx@p...>
>Subject: [aspx] Re: Windows Menus In A Web Page
>Date: Thu, 8 Aug 2002 20:38:39
>
>Thanks Albert...but how about a "button" of the sort <asp:button> or
><input value="Click Here To Continue">????  Following what you did below,
>I'd have 2 buttons side by side as  [C][lick Here]
>
>Jim
>
> > <a href="?" style="text-decoration:underline;">C</a><a href="?"
>style="text-decoration:none;">lick Here To Continue</a>
>
> >From: "J Donahue" <jdonahue@f...>
> >Reply-To: "ASP+" <aspx@p...>
> >To: "ASP+" <aspx@p...>
> >Subject: [aspx] Windows Menus In A Web Page
> >Date: Thu, 8 Aug 2002 20:23:04
> >
> >One of the managers in a different department has started playing with
> >Windows apps.  He seems really impressed that he can make a windows 
menu
> >with the <alt>+letter to activate the menu item.
> >He's indicated that if we were doing a "professional" application we'd
> >have something similiar in our web pages.  He says he doesn't want to
> >have to move his hands from the keyboard to use the mouse to click a 
link
> >so he wants us to put windows-type menus in the web page activated by
> ><alt>+letter.
> >In addition, he wants our "Click Here To Continue" buttons to have the
> >appropriate letter underlined so he knows which <alt>+letter sequence 
to
> >push.
> >I have no problem writing the code to handle the <alt>+etc event but 
I'm
> >curious...anyone have a way of getting the button value to say "Click
> >Here To Continue" with the first "C" underlined besides creating jpg's 
or
> >gif's???
>
>
>
>
>_________________________________________________________________
>Send and receive Hotmail on your mobile device: http://mobile.msn.com
>


_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

Message #7 by "Samuel Engelman" <samuel_engelman@p...> on Thu, 8 Aug 2002 16:19:54 -0400
Try this


<button accesskey=3D"c" onclick=3D"alert('Testing')"><font style
=3D"text-decoration:underline">C</font>lick here to continue</button>

Replace the onclick event with anything else




|---------+--------------------------------------->
|         |   "Albert Davis"                      |
|         |   <albertdavis@h...>           |
|         |                                       |
|         |                                       |
|         |   Thursday August 8, 2002 03:59 PM    |
|         |   Please respond to "ASP+"            |
|         |                                       |
|---------+--------------------------------------->
  >--------------------------------------------------------------------
-------------------------------|
  |                                                                    
                               |
  |       To:                                         "ASP+" <aspx@p...
wrox.com>                      |
  |       cc:                                                          
                               |
  |       Subject:   [aspx] Re: Windows Menus In A Web Page            
                               |
  >--------------------------------------------------------------------
-------------------------------|




What your really looking to use is the "accesskey" property.  Such as
"accesskey=3DC" - then when a user in a key sequence hits Alt+C that ob
ject's
click event will be fired off.  To my knowledge you can get the underli
ne
to
work unless you set your button to an image src like you mentioned befo
re.
But you could beside the button have the caption "Alt+C".  You could al
so
just use <a> as your clicking point as I described before.  If understa
nd
DHTML pretty well you could set the borders around an <a> tag to look a
nd
feel like a button...

hth,
Al


>From: "J Donahue" <jdonahue@f...>
>Reply-To: "ASP+" <aspx@p...>
>To: "ASP+" <aspx@p...>
>Subject: [aspx] Re: Windows Menus In A Web Page
>Date: Thu, 8 Aug 2002 20:38:39
>
>Thanks Albert...but how about a "button" of the sort <asp:button> or
><input value=3D"Click Here To Continue">????  Following what you did b
elow,
>I'd have 2 buttons side by side as  [C][lick Here]
>
>Jim
>
> > <a href=3D"?" style=3D"text-decoration:underline;">C</a><a href=3D"
?"
>style=3D"text-decoration:none;">lick Here To Continue</a>
>
> >From: "J Donahue" <jdonahue@f...>
> >Reply-To: "ASP+" <aspx@p...>
> >To: "ASP+" <aspx@p...>
> >Subject: [aspx] Windows Menus In A Web Page
> >Date: Thu, 8 Aug 2002 20:23:04
> >
> >One of the managers in a different department has started playing wi
th
> >Windows apps.  He seems really impressed that he can make a windows 
menu
> >with the <alt>+letter to activate the menu item.
> >He's indicated that if we were doing a "professional" application we
'd
> >have something similiar in our web pages.  He says he doesn't want t
o
> >have to move his hands from the keyboard to use the mouse to click a

link
> >so he wants us to put windows-type menus in the web page activated b
y
> ><alt>+letter.
> >In addition, he wants our "Click Here To Continue" buttons to have t
he
> >appropriate letter underlined so he knows which <alt>+letter sequenc
e to
> >push.
> >I have no problem writing the code to handle the <alt>+etc event but
 I'm
> >curious...anyone have a way of getting the button value to say "Clic
k
> >Here To Continue" with the first "C" underlined besides creating jpg
's
or
> >gif's???
>
>
>
>
>_________________________________________________________________
>Send and receive Hotmail on your mobile device: http://mobile.msn.com
>


_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com







  Return to Index