Index
2014-06-27 09:52Kent Belan : Focus not in correct place
2014-06-27 09:57Fred Taylor : Re: Focus not in correct place
2014-06-27 10:04Paul Newton : RE: Focus not in correct place
2014-06-27 10:06Kent Belan : RE: Focus not in correct place
2014-06-27 10:06Koen Piller : Re: Focus not in correct place
2014-06-27 10:48Kent Belan : RE: Focus not in correct place
2014-06-27 20:27Fred Taylor : Re: Focus not in correct place
Back to top
Focus not in correct place

Author: Kent Belan

Posted: 2014-06-27 09:52:59   Link

Happy Friday !!

I have been trying to fix this problem for a while, but I am stumped.

I have a VFP9 form that has several containers on the form. Depending on

the menu item selected, the program will load other containers inside the

main containers on the form.

I have one container that on the first load only, the focus is lost when the

container loads. Everything looks fine with the container but when you hit

the TAB key the computer beeps like it can not tab. I also can not type in

any of the text boxes. The weird thing is I can click in any of the text

boxes, but it will not let me type. The dropdown controls do work and I can

click on the down arrow of the control and drop the options.

If I click on the same menu option the second time, everything is working

fine and the focus is correct and the text fields work as expected.

I am stumped how to figure out where the focus is on the first load.

Is there any way to find out where the focus is or why the container that

was just loaded does not have the focus on the first load.

If I run the debugger, the focus changes and when I click back on the

container, every thing is working like normal

I hate these kind of problems ...............

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/000201cf9217$7da6f2f0$78f4d8d0$@mchsi.com

** 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.

©2014 Kent Belan
Back to top
Re: Focus not in correct place

Author: Fred Taylor

Posted: 2014-06-27 09:57:51   Link

For the fields that the text boxes are bound to, is the table at EOF?

Fred

On Fri, Jun 27, 2014 at 7:52 AM, Kent Belan <kbelan@mchsi.com> wrote:

> Happy Friday !!

>

> I have been trying to fix this problem for a while, but I am stumped.

>

> I have a VFP9 form that has several containers on the form. Depending on

> the menu item selected, the program will load other containers inside the

> main containers on the form.

>

> I have one container that on the first load only, the focus is lost when

> the

> container loads. Everything looks fine with the container but when you hit

> the TAB key the computer beeps like it can not tab. I also can not type in

> any of the text boxes. The weird thing is I can click in any of the text

> boxes, but it will not let me type. The dropdown controls do work and I can

> click on the down arrow of the control and drop the options.

>

> If I click on the same menu option the second time, everything is working

> fine and the focus is correct and the text fields work as expected.

>

> I am stumped how to figure out where the focus is on the first load.

>

> Is there any way to find out where the focus is or why the container that

> was just loaded does not have the focus on the first load.

>

> If I run the debugger, the focus changes and when I click back on the

> container, every thing is working like normal

>

> I hate these kind of problems ...............

>

>

>

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CAJCBksr3rm7BqGNMMNEqm4CJ24CbM50w5OjbuQY5A-ZZ7xp4ZA@mail.gmail.com

** 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.

©2014 Fred Taylor
Back to top
RE: Focus not in correct place

Author: Paul Newton

Posted: 2014-06-27 10:04:37   Link

I had a similar problem and solved it like this:

In one of your procedures define a timer as follows

Define Class "TempTimer" As Timer

Interval = 1000

Procedure Timer()

Thisform.Release()

EndProc

EndDefine

Add a property lFirstActivate (default value .T.) to the form that is causing a problem, then put the following code in the forms Activate method

Local loForm As Form

loForm = CreateObject("Form")

loForm.AddObject("oTimer", "TempTimer")

loForm.Left = -1000

loForm.Top = -1000

loForm.Show(1)

This.lFirstActivate = .F.

HTH

Paul

-----Original Message-----

From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Kent Belan

Sent: 27 June 2014 15:53

To: profoxtech@leafe.com

Subject: Focus not in correct place

Happy Friday !!

I have been trying to fix this problem for a while, but I am stumped.

I have a VFP9 form that has several containers on the form. Depending on the menu item selected, the program will load other containers inside the main containers on the form.

I have one container that on the first load only, the focus is lost when the container loads. Everything looks fine with the container but when you hit the TAB key the computer beeps like it can not tab. I also can not type in any of the text boxes. The weird thing is I can click in any of the text boxes, but it will not let me type. The dropdown controls do work and I can click on the down arrow of the control and drop the options.

If I click on the same menu option the second time, everything is working fine and the focus is correct and the text fields work as expected.

I am stumped how to figure out where the focus is on the first load.

Is there any way to find out where the focus is or why the container that was just loaded does not have the focus on the first load.

If I run the debugger, the focus changes and when I click back on the container, every thing is working like normal

I hate these kind of problems ...............

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/9A8106AFB0EF9B44B69045C4448935A2622409FC@NLBAWEXMBX1.infor.com

** 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.

©2014 Paul Newton
Back to top
RE: Focus not in correct place

Author: Kent Belan

Posted: 2014-06-27 10:06:00   Link

The text boxes are bound to business object properties so not directly bound

to data fields.

-----Original Message-----

From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Fred Taylor

Sent: Friday, June 27, 2014 10:58 AM

To: ProFox Email List

Subject: Re: Focus not in correct place

For the fields that the text boxes are bound to, is the table at EOF?

Fred

On Fri, Jun 27, 2014 at 7:52 AM, Kent Belan <kbelan@mchsi.com> wrote:

> Happy Friday !!

>

> I have been trying to fix this problem for a while, but I am stumped.

>

> I have a VFP9 form that has several containers on the form. Depending

> on the menu item selected, the program will load other containers

> inside the main containers on the form.

>

> I have one container that on the first load only, the focus is lost

> when the container loads. Everything looks fine with the container but

> when you hit the TAB key the computer beeps like it can not tab. I

> also can not type in any of the text boxes. The weird thing is I can

> click in any of the text boxes, but it will not let me type. The

> dropdown controls do work and I can click on the down arrow of the

> control and drop the options.

>

> If I click on the same menu option the second time, everything is

> working fine and the focus is correct and the text fields work as

expected.

>

> I am stumped how to figure out where the focus is on the first load.

>

> Is there any way to find out where the focus is or why the container

> that was just loaded does not have the focus on the first load.

>

> If I run the debugger, the focus changes and when I click back on the

> container, every thing is working like normal

>

> I hate these kind of problems ...............

>

>

>

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/000301cf9219$4f425a60$edc70f20$@mchsi.com

** 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.

©2014 Kent Belan
Back to top
Re: Focus not in correct place

Author: Koen Piller

Posted: 2014-06-27 10:06:35   Link

Hi,

Try with Tab-Order (Main menu ->TabOrder ->Assign interactively) and set to

tab sequence.

Regards,

Koen

2014-06-27 16:57 GMT+02:00 Fred Taylor <fbtaylor@gmail.com>:

> For the fields that the text boxes are bound to, is the table at EOF?

>

> Fred

>

>

> On Fri, Jun 27, 2014 at 7:52 AM, Kent Belan <kbelan@mchsi.com> wrote:

>

> > Happy Friday !!

> >

> > I have been trying to fix this problem for a while, but I am stumped.

> >

> > I have a VFP9 form that has several containers on the form. Depending on

> > the menu item selected, the program will load other containers inside the

> > main containers on the form.

> >

> > I have one container that on the first load only, the focus is lost when

> > the

> > container loads. Everything looks fine with the container but when you

> hit

> > the TAB key the computer beeps like it can not tab. I also can not type

> in

> > any of the text boxes. The weird thing is I can click in any of the text

> > boxes, but it will not let me type. The dropdown controls do work and I

> can

> > click on the down arrow of the control and drop the options.

> >

> > If I click on the same menu option the second time, everything is working

> > fine and the focus is correct and the text fields work as expected.

> >

> > I am stumped how to figure out where the focus is on the first load.

> >

> > Is there any way to find out where the focus is or why the container that

> > was just loaded does not have the focus on the first load.

> >

> > If I run the debugger, the focus changes and when I click back on the

> > container, every thing is working like normal

> >

> > I hate these kind of problems ...............

> >

> >

> >

> >

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CACUu1SvmXPsqDNuEZuHm1khgZH-57FoC2q8OcoCj0C39Qh40YA@mail.gmail.com

** 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.

©2014 Koen Piller
Back to top
RE: Focus not in correct place

Author: Kent Belan

Posted: 2014-06-27 10:48:30   Link

Hello Paul,

This looks very interesting, but unfortunately it did not help with my

problem.

I know the timer fired to release the temp form because I put a wait window

msg in the timer method, but the container still has the same problem with

the lost focus

-----Original Message-----

From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Paul Newton

Sent: Friday, June 27, 2014 11:05 AM

To: profox@leafe.com

Subject: RE: Focus not in correct place

I had a similar problem and solved it like this:

In one of your procedures define a timer as follows

Define Class "TempTimer" As Timer

Interval = 1000

Procedure Timer()

Thisform.Release()

EndProc

EndDefine

Add a property lFirstActivate (default value .T.) to the form that is

causing a problem, then put the following code in the forms Activate method

Local loForm As Form

loForm = CreateObject("Form")

loForm.AddObject("oTimer", "TempTimer")

loForm.Left = -1000

loForm.Top = -1000

loForm.Show(1)

This.lFirstActivate = .F.

HTH

Paul

-----Original Message-----

From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Kent

Belan

Sent: 27 June 2014 15:53

To: profoxtech@leafe.com

Subject: Focus not in correct place

Happy Friday !!

I have been trying to fix this problem for a while, but I am stumped.

I have a VFP9 form that has several containers on the form. Depending on

the menu item selected, the program will load other containers inside the

main containers on the form.

I have one container that on the first load only, the focus is lost when the

container loads. Everything looks fine with the container but when you hit

the TAB key the computer beeps like it can not tab. I also can not type in

any of the text boxes. The weird thing is I can click in any of the text

boxes, but it will not let me type. The dropdown controls do work and I can

click on the down arrow of the control and drop the options.

If I click on the same menu option the second time, everything is working

fine and the focus is correct and the text fields work as expected.

I am stumped how to figure out where the focus is on the first load.

Is there any way to find out where the focus is or why the container that

was just loaded does not have the focus on the first load.

If I run the debugger, the focus changes and when I click back on the

container, every thing is working like normal

I hate these kind of problems ...............

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/000801cf921f$3f064250$bd12c6f0$@mchsi.com

** 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.

©2014 Kent Belan
Back to top
Re: Focus not in correct place

Author: Fred Taylor

Posted: 2014-06-27 20:27:42   Link

Is there a Pageframe on the form? I've seen an issue that the only thing

that seems to work is to set the form.LockScreen property, cycle from the

last page to first (pageframe.ActivePage) and reset the form.LockScreen.

Fred

On Fri, Jun 27, 2014 at 8:48 AM, Kent Belan <kbelan@mchsi.com> wrote:

> Hello Paul,

>

> This looks very interesting, but unfortunately it did not help with my

> problem.

>

> I know the timer fired to release the temp form because I put a wait window

> msg in the timer method, but the container still has the same problem with

> the lost focus

>

> -----Original Message-----

> From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Paul Newton

> Sent: Friday, June 27, 2014 11:05 AM

> To: profox@leafe.com

> Subject: RE: Focus not in correct place

>

> I had a similar problem and solved it like this:

>

> In one of your procedures define a timer as follows

>

> Define Class "TempTimer" As Timer

> Interval = 1000

> Procedure Timer()

> Thisform.Release()

> EndProc

> EndDefine

>

> Add a property lFirstActivate (default value .T.) to the form that is

> causing a problem, then put the following code in the forms Activate

> method

>

>

> Local loForm As Form

> loForm = CreateObject("Form")

> loForm.AddObject("oTimer", "TempTimer")

> loForm.Left = -1000

> loForm.Top = -1000

> loForm.Show(1)

> This.lFirstActivate = .F.

>

> HTH

>

> Paul

>

> -----Original Message-----

> From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Kent

> Belan

> Sent: 27 June 2014 15:53

> To: profoxtech@leafe.com

> Subject: Focus not in correct place

>

> Happy Friday !!

>

> I have been trying to fix this problem for a while, but I am stumped.

>

> I have a VFP9 form that has several containers on the form. Depending on

> the menu item selected, the program will load other containers inside the

> main containers on the form.

>

> I have one container that on the first load only, the focus is lost when

> the

> container loads. Everything looks fine with the container but when you hit

> the TAB key the computer beeps like it can not tab. I also can not type in

> any of the text boxes. The weird thing is I can click in any of the text

> boxes, but it will not let me type. The dropdown controls do work and I can

> click on the down arrow of the control and drop the options.

>

> If I click on the same menu option the second time, everything is working

> fine and the focus is correct and the text fields work as expected.

>

> I am stumped how to figure out where the focus is on the first load.

>

> Is there any way to find out where the focus is or why the container that

> was just loaded does not have the focus on the first load.

>

> If I run the debugger, the focus changes and when I click back on the

> container, every thing is working like normal

>

> I hate these kind of problems ...............

>

>

>

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CAJCBksqpvTTN+wv0dXXRQruFgRcSEwB3wFQ7cc3wCcrA-aP0_g@mail.gmail.com

** 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.

©2014 Fred Taylor