Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Behavior changed when row selected

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
billcch



Joined: 19 Jan 2007
Posts: 44

PostPosted: Wed Jun 18, 2008 12:47 am    Post subject: Behavior changed when row selected Reply with quote

In previous version (3.5.7), we were able to receive VirtualTree.KeyDown message when hit enter key in the tree (a row or few rows have been selected in the tree before hit the key), but after we upgrade to 3.10.2, we cannot receive KeyDown event on "enter", "f" keys (I am not sure what keys else we cannot receive, for example "a", "b", "c", "d", "e" keys are ok, but "f" not... the most improtant keys for us are "enter" and "f").
Note: we did not change our code, we just upgrade VirtualTree only
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Jun 18, 2008 7:24 am    Post subject: Reply with quote

The behaviour for the "f" key is not a Virtual Tree issue. I have just checked by adding a KeyDown event handler to the Simple Tree sample project as follows:

Code:

        private void _virtualTree_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F)
            {
                System.Diagnostics.Trace.WriteLine("Got F");
            }
        }

When the control has focus this duly prints out "Got F" to the output window when you hit the "f" key.

The Enter key handling has changed however. It is processed by the VirtualTree.ProcessEnterKey method and so you won't receive the event in the KeyDown event handler. Normally Virtual Tree uses the Enter key
to manage Cell Editors. If you really need to get this event then you can override the VirtualTree.ProcessEnterKey and return false. This will mean that the KeyDown event will be then raised for the Enter key.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group