Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: using keyboard
giladfit
Junior Member

Posts: 5
Registered: 8/31/2004
Member Is Offline
posted on 9/27/2004 at 08:04 AM Reply With Quote
using keyboard


How can I use the keyboard in the tree? and I mean in explorer like for up/down arrows + right for expand and left for collapse?

Additional related question is the ability of performing keyboard search (Even only in current level) where the user eneters a letter and the selection is moved to the node starting with this one. Can it be done? if so, how?
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 9/27/2004 at 08:57 AM Reply With Quote

There is no built in keyboard functionality but I think the feature is possible to implement using the extra event handlers functionality. You could find examples of usage the custom event handler (for right-click handling) at demo6 of your download package. Just assign your event handler to onkeydown event.
To get more information about event handlers and other tree API please refer to product documentation.
View User's Profile View All Posts By User U2U Member
giladfit
Junior Member

Posts: 5
Registered: 8/31/2004
Member Is Offline
posted on 9/27/2004 at 12:17 PM Reply With Quote
70% of the way


I have entered:
'userTextEvent': {
'oncontextmenu':'return h_context_menu(o_tree_item)',
'onkeydown':'return h_keyDown(o_tree_item)',
'style':'color:000000'
in the example (6), and implemented the method:
function h_keyDown(o_item) {
alert('move down '+ window.event.keyCode);
}
now, the strange thing is that it is working only when I have clicked on a node and held the mouse button pressed, it looks that when I release the button, the selection is cleared and then the event handler is not working.
any solution?
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 9/28/2004 at 11:12 AM Reply With Quote

Please refer to our Customer Care System
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Multiple Trees
Frames Targeting
Icons and Styles Overloading
Event Handling
Performance Test
Version 1.2 features
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004