![]() |
CommandBarKeyDown Event |
Post Reply ![]() |
Author | |
Guy1 ![]() Newbie ![]() Joined: 04 May 2006 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() Posted: 22 June 2006 at 2:04pm |
I am trying to use the new event (10.2 2006 Q2 release) on the command bar called 'CommandBarKeyDown'. It fires on the keydown event as expected.
I want to trap each keystroke in a commandBarEdit object within a command bar and extract the text property. The problem I am having is that the commandBar.selectedControl.Text property of the edit object does not get updated until after the keydown event completes.
I see the typed character on the window but the text property does not contain the character, until after the event finishes.
Was that the intent, and if so, can anyone suggest a solution?
Thanks.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, As workaround use Edit.EditHandle property + api GetWindowText.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Guy1 ![]() Newbie ![]() Joined: 04 May 2006 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
Thanks for the reply.
The approach I have taken is to set a logical variable in the KeyDOwn event that is picked up by the update event. By the time the update event fires the command bar editor text attribute has been updated with the users last keystroke.
This seems to work for me.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |