Want to activate child form launched in parent (but keep parent open)

2007-05-17 Thread MB Software Solutions
frmParent form has code that does a DO FORM frmChild NAME loFrm  and 
then I do a loFrm.Activate, but the frmParent stays in the foreground 
and the frmChild is in the background.  I want frmChild to get front 
focus. 

'frmChild.Activate' didn't do it...what would?

-- 
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
Work smarter, not harder, with MBSS custom software solutions!



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: Want to activate child form launched in parent (but keep parent open)

2007-05-17 Thread Allen
Is the child set to be in top level form ? Setfocus() ?
Allen 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of MB Software Solutions
Sent: 17 May 2007 14:34
To: [EMAIL PROTECTED]
Subject: Want to activate child form launched in parent (but keep parent
open)

frmParent form has code that does a DO FORM frmChild NAME loFrm  and 
then I do a loFrm.Activate, but the frmParent stays in the foreground 
and the frmChild is in the background.  I want frmChild to get front 
focus. 

'frmChild.Activate' didn't do it...what would?

-- 
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
Work smarter, not harder, with MBSS custom software solutions!


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.7.1/807 - Release Date: 16/05/2007
18:05
 



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: Want to activate child form launched in parent (but keep parent open)

2007-05-17 Thread Tracy Pearson
Does the parent form have AlwaysOnTop set true?

-Original Message-
From: MB Software Solutions
Sent: Thursday, May 17, 2007 8:34 AM

frmParent form has code that does a DO FORM frmChild NAME loFrm  and then I
do a loFrm.Activate, but the frmParent stays in the foreground and the
frmChild is in the background.  I want frmChild to get front focus. 

'frmChild.Activate' didn't do it...what would?




___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Want to activate child form launched in parent (but keep parent open)

2007-05-17 Thread Richard Kaye
How about loFrm.Show instead?

MB Software Solutions wrote:
 frmParent form has code that does a DO FORM frmChild NAME loFrm  and 
 then I do a loFrm.Activate, but the frmParent stays in the foreground 
 and the frmChild is in the background.  I want frmChild to get front 
 focus. 

 'frmChild.Activate' didn't do it...what would?

   

-- 
Richard Kaye
Vice President
Artfact/RFC Systems
Voice: 617.219.1038
Fax:  617.219.1001

For the fastest response time, please send your support
queries to:

Technical Support - [EMAIL PROTECTED]
Australian Support - [EMAIL PROTECTED]
Internet Support - [EMAIL PROTECTED]
All Other Requests - [EMAIL PROTECTED]

-
This message has been checked for viruses before sending.
-



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: Want to activate child form launched in parent (but keep parent open)

2007-05-17 Thread Dave Crozier
Malcolm,
Check in the Parent form that you haven't got the AlwaysOnTop property set.

Otherwise it should work no problem even if you don't use the Name loFrm
reference

Dave Crozier

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of MB Software Solutions
Sent: 17 May 2007 13:34
To: Profox
Subject: Want to activate child form launched in parent (but keep parent
open)

frmParent form has code that does a DO FORM frmChild NAME loFrm  and 
then I do a loFrm.Activate, but the frmParent stays in the foreground 
and the frmChild is in the background.  I want frmChild to get front 
focus. 

'frmChild.Activate' didn't do it...what would?

-- 
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
Work smarter, not harder, with MBSS custom software solutions!



[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Want to activate child form launched in parent (but keep parent open)

2007-05-17 Thread MB Software Solutions
Tracy Pearson wrote:
 Does the parent form have AlwaysOnTop set true?
   
No, but I don't want it to Always be OnTop, either.  g


-- 
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
Work smarter, not harder, with MBSS custom software solutions!



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Want to activate child form launched in parent (but keep parent open)

2007-05-17 Thread MB Software Solutions
Richard Kaye wrote:
 How about loFrm.Show instead?
   
Actually, I'm already doing that (and so that's not it):

LPARAMETERS tlActivate
IF NOT EOF(this.cCursor) THEN
LOCAL loFrm as Form, liCustID as Integer, lcName as String
liCustID = EVALUATE(this.cCursor + .iid)
lcName = ALLTRIM(EVALUATE(this.cCursor + .cname))
DO FORM .\forms\frmAccounts WITH liCustID, lcName NAME loFrm
IF oUtils.AddForm(loFrm,loFrm.cUniqueID,.T.) THEN
loFrm.Show()
IF tlActivate THEN
loFrm.Activate()
ENDIF
ELSE
loFrm.Release()
ENDIF
ENDIF


-- 
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
Work smarter, not harder, with MBSS custom software solutions!



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: Want to activate child form launched in parent (but keep parent open)

2007-05-17 Thread Tracy Pearson
Not sure if this will help, but here it is. Try it after loFrm.Activate() 
ACTIVATE WINDOW (loFrm.Name)

Also, you might want to add NOSHOW to the DO FORM command.

-Original Message-
From: MB Software Solutions
Sent: Thursday, May 17, 2007 10:51 AM

Richard Kaye wrote:
 How about loFrm.Show instead?
   
Actually, I'm already doing that (and so that's not it):

LPARAMETERS tlActivate
IF NOT EOF(this.cCursor) THEN
LOCAL loFrm as Form, liCustID as Integer, lcName as String
liCustID = EVALUATE(this.cCursor + .iid)
lcName = ALLTRIM(EVALUATE(this.cCursor + .cname))
DO FORM .\forms\frmAccounts WITH liCustID, lcName NAME loFrm
IF oUtils.AddForm(loFrm,loFrm.cUniqueID,.T.) THEN
loFrm.Show()
IF tlActivate THEN
loFrm.Activate()
ENDIF
ELSE
loFrm.Release()
ENDIF
ENDIF





___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Want to activate child form launched in parent (but keep parent open)

2007-05-17 Thread Alan Bourke
You could change the child form to a form class instead. Then on the 
parent form:

Local oChildForm

oChildForm = CreateObject(myChildFormClass)
oChildForm.Show(1)

x1 = oChildForm.Property1   Query a property set when the form 
was running

oChildForm.Release()





___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Want to activate child form launched in parent (but keep parent open)

2007-05-17 Thread MB Software Solutions
Alan Bourke wrote:
 You could change the child form to a form class instead. Then on the 
 parent form:

 Local oChildForm

 oChildForm = CreateObject(myChildFormClass)
 oChildForm.Show(1)

 x1 = oChildForm.Property1   Query a property set when the form 
 was running

 oChildForm.Release()

   
But I don't want it to be a modal form.  Your example is just that 
(since you use the 1 for the Show parameter value).

-- 
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
Work smarter, not harder, with MBSS custom software solutions!



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Want to activate child form launched in parent (but keep parent open)

2007-05-17 Thread MB Software Solutions
MB Software Solutions wrote:
 Richard Kaye wrote:
   
 How about loFrm.Show instead?
   
 
 Actually, I'm already doing that (and so that's not it):

 LPARAMETERS tlActivate
 IF NOT EOF(this.cCursor) THEN
 LOCAL loFrm as Form, liCustID as Integer, lcName as String
 liCustID = EVALUATE(this.cCursor + .iid)
 lcName = ALLTRIM(EVALUATE(this.cCursor + .cname))
 DO FORM .\forms\frmAccounts WITH liCustID, lcName NAME loFrm
 IF oUtils.AddForm(loFrm,loFrm.cUniqueID,.T.) THEN
 loFrm.Show()
 IF tlActivate THEN
 loFrm.Activate()
 ENDIF
 ELSE
 loFrm.Release()
 ENDIF
 ENDIF


   
Adding the NOSHOW() didn't fix it.

-- 
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
Work smarter, not harder, with MBSS custom software solutions!



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Want to activate child form launched in parent (but keep parent open)

2007-05-17 Thread Alan Bourke
MB Software Solutions wrote:

 But I don't want it to be a modal form.  Your example is just that 
 (since you use the 1 for the Show parameter value).

   
Well, make the 1 a 2 then.


___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Want to activate child form launched in parent (but keep parent open)

2007-05-17 Thread Ted Roche
On 5/17/07, MB Software Solutions [EMAIL PROTECTED] wrote:

 But I don't want it to be a modal form.  Your example is just that
 (since you use the 1 for the Show parameter value).

That's just the kind of wanton immodality that leads to... DotNet!

These kids today!

-- 
Ted Roche
Ted Roche  Associates, LLC
http://www.tedroche.com


___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Want to activate child form launched in parent (but keep parent open)

2007-05-17 Thread MB Software Solutions
Ted Roche wrote:
 But I don't want it to be a modal form.  Your example is just that
 (since you use the 1 for the Show parameter value).
 

 That's just the kind of wanton immodality that leads to... DotNet!

 These kids today!

   
To quote the caveman from the commercials Yeah I have a response.  
*What* !?!?  g

-- 
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
Work smarter, not harder, with MBSS custom software solutions!



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.