SetFocus |
Post Reply |
Author | |
Boris
Senior Member Joined: 21 June 2007 Location: United Kingdom Status: Offline Points: 179 |
Post Options
Thanks(0)
Posted: 28 March 2009 at 10:13am |
Hi, Can we have the SetFocus method on the FlatEdit control please.
Regards
|
|
Boris
Product: Xtreme SuitePro (ActiveX) version 16.4.0 16.3.1 Platform: Windows XP (32bit) - SP 3 Language: Visual Basic 6.0 SP6 VS 2005-2008-2010-2013 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Visual Basic added it. Check
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Boris
Senior Member Joined: 21 June 2007 Location: United Kingdom Status: Offline Points: 179 |
Post Options
Thanks(0)
|
Hi Oleg,
Sorry Oleg you are quite right. My post is in the wrong place. This relates to the CommandBars xtpControlEdit.
I have a MDI app. The commandbar in the MDIParent has two multi functional controls. A drop down combo and an edit control.
The user has opened a MDIChild and then selects an option from the combo in the commandbar of the MDIParent and enters a value in the edit control. When they press enter a db query runs in the active child form. All I am trying to do is to put the focus back to the edit control if the db returns no records. When I run the code I can see that the edit control flashes briefly and the focus goes back to the control on the child.
Does this make more sense ?
Regards,
|
|
Boris
Product: Xtreme SuitePro (ActiveX) version 16.4.0 16.3.1 Platform: Windows XP (32bit) - SP 3 Language: Visual Basic 6.0 SP6 VS 2005-2008-2010-2013 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Add 2 lines to set focus
Case ID_FILE_NEW:
Control.SetFocus Control.Execute |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |