![]() |
Retaining Focus |
Post Reply ![]() |
Author | |
LittleJK ![]() Senior Member ![]() ![]() Joined: 13 April 2006 Status: Offline Points: 168 |
![]() ![]() ![]() ![]() ![]() Posted: 17 April 2007 at 3:57pm |
Hi, we have a command bar that contains a combo box in which we want to keep the focus on the text inside the combo box whenever we hit enter. Currently when we hit enter it loses focus and then you have to click inside the drop down again. Is there anyway like using control notify event to keep the focus? We are using 10.42... possibly 11.1 will do the job?
Thanks |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
try this
Private Sub CommandBars_CommandBarKeyDown(CommandBar As XtremeCommandBars.ICommandBar, KeyCode As Long, Shift As Integer)
If KeyCode = 13 And Not CommandBar.SelectedControl Is Nothing Then If CommandBar.SelectedControl.Type = xtpControlComboBox Then KeyCode = 0 End If End If End Sub |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
LittleJK ![]() Senior Member ![]() ![]() Joined: 13 April 2006 Status: Offline Points: 168 |
![]() ![]() ![]() ![]() ![]() |
Thanks... we'll see if that works out.
|
|
![]() |
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 |