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 

How to capture the 'enter' key?

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



Joined: 22 Dec 2008
Posts: 9

PostPosted: Thu Jun 09, 2011 10:55 am    Post subject: How to capture the 'enter' key? Reply with quote

Hello Infralution Group,

Here I met a problem about capture 'enter' key.

For example, In your demo 'Custom Type Editor'. Column 'Stock Level' has been binded a UITypeEditor. Then I click and edit it. please see the following picture.

.
If you click 'Enter' key, the current result like this:

But I want to capture this event about click 'Enter' key, because i need implement some other business.
So can you give me a solution. Thank you in advance!

Thank you in advance!
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Jun 09, 2011 10:26 pm    Post subject: Reply with quote

Normally when there is an open editor Virtual Tree processes the Enter key and completes the edit (closes the editor) when the Enter key is pressed. You can change this by overriding the ProcessEditEnterCmdKey method and just return false (which indicates the key is not handled). This may however mean that for some editors there is then no way to complete editing via the keyboard.
_________________
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