Print Page | Close Window

CommandBarKeyDown Event

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=4468
Printed Date: 04 October 2024 at 1:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CommandBarKeyDown Event
Posted By: Guy1
Subject: CommandBarKeyDown Event
Date 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.



Replies:
Posted By: Oleg
Date Posted: 22 June 2006 at 5:38pm

Hi,

As workaround use Edit.EditHandle property + api  GetWindowText.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Guy1
Date Posted: 23 June 2006 at 5:08pm
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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net