|
Home > Archive > FoxPro Help and Support > July 2005 > How to set focus to a top-level-form
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to set focus to a top-level-form
|
|
|
| Dear All,
I am using VFP6, I defined a form which show it as top level form, my main
program as follow;
_screen.visible = .f.
do form pos
read event
the form pos did show up at the desktop, but not the current window of the
desktop, until I clicked on it. I want to show the pos at the desktop and
also make it the current window of the desktop. my application assume that
the user do not need to use the mouse in most of the case. Thanks.
| |
|
| Andy
What I do is set the object I want to have focus on the form in the init of
the form. Then if you switch the order of your commands around it works.
DO FORM pos
_Screen.Visible = .f.
READ EVENT
Cheers
Jay
"andy" wrote:
> Dear All,
> I am using VFP6, I defined a form which show it as top level form, my main
> program as follow;
> _screen.visible = .f.
> do form pos
> read event
>
> the form pos did show up at the desktop, but not the current window of the
> desktop, until I clicked on it. I want to show the pos at the desktop and
> also make it the current window of the desktop. my application assume that
> the user do not need to use the mouse in most of the case. Thanks.
>
| |
|
| Jay,
It works. Thank you very much !
andy
"JayH" wrote:
[color=darkred]
> Andy
>
> What I do is set the object I want to have focus on the form in the init of
> the form. Then if you switch the order of your commands around it works.
>
> DO FORM pos
> _Screen.Visible = .f.
> READ EVENT
>
> Cheers
> Jay
>
>
> "andy" wrote:
>
|
|
|
|
|