Print Page | Close Window

SetFocus

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=13839
Printed Date: 28 September 2024 at 9:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SetFocus
Posted By: Boris
Subject: SetFocus
Date 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



Replies:
Posted By: Oleg
Date Posted: 30 March 2009 at 1:41am
Hi,
 
Visual Basic added it. Check


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


Posted By: Boris
Date Posted: 30 March 2009 at 2:00pm
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


Posted By: Oleg
Date Posted: 31 March 2009 at 2:22am
Hi,
 
Add 2 lines to set focus
 
        Case ID_FILE_NEW:
            Control.SetFocus
            Control.Execute
       


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



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