Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - SetFocus
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SetFocus

 Post Reply Post Reply
Author
Message
Boris View Drop Down
Senior Member
Senior Member
Avatar

Joined: 21 June 2007
Location: United Kingdom
Status: Offline
Points: 179
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boris Quote  Post ReplyReply Direct Link To This Post Topic: SetFocus
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 March 2009 at 1:41am
Hi,
 
Visual Basic added it. Check
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Boris View Drop Down
Senior Member
Senior Member
Avatar

Joined: 21 June 2007
Location: United Kingdom
Status: Offline
Points: 179
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boris Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.