Toggle treeview visibility...

H

hzgt9b

Check out the tree view on this page:
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.tr...



When you hover over the border between the two frames, a tooltip
displays: "Click and drag to resize. Double click or press 't' to
toggle visibility."


I'm a bit of a newbie to javascript -- how does javascript trap the
keyboard events to perform the "...or press 't' to toggle visibility"
functionality to work?


Any pointers to examples or code snippets would be appreciated.
 
R

Randy Webb

hzgt9b said the following on 12/1/2006 1:27 AM:
Check out the tree view on this page:
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.tr...
When you hover over the border between the two frames,

They aren't frames.

a tooltip displays: "Click and drag to resize. Double click or press 't' to
toggle visibility."


I'm a bit of a newbie to javascript -- how does javascript trap the
keyboard events to perform the "...or press 't' to toggle visibility"
functionality to work?

document.onkeydown

Search the archives.

Don't mouse over the border, simply press t and it still hides/shows it.
 
H

hzgt9b

Randy,
Thanks for the reply.

What are they using the build the treeview pane (since its not a frame)?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top