Focus not in correct place

Author: Kent Belan

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

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