Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top Level Form needs focus..
Message
 
To
01/09/2000 11:26:09
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00411754
Message ID:
00411784
Views:
14
>Hi Folks,
>
>Say, when I create a simple project with a launching PRG calling a Top Level form after the form launches it appears to not have focus.
>
>That is, the top bar is grey as opposed to the blue I normally see when an object has Windows focus.
>
>I have a _screen.visible = .f. in the PRG as well.
>
>I'm trying to see if this is a bug or what might be required to make the form have focus when launched from a shortcut.
>
>I've dug around a bit looking for a mention of this and can't find any FAQ or anything on it.
>
>Best,
>
DD,

I seem to recall having a similar problem some time ago, but I don't remember what I did that was really the fix. I do know that in my SDI apps, the lines right before the READ EVENTS look something like this:
DO FORM SomeForm.scx NAME oForm LINKED
oForm.Show()
oForm.Activate
I think that the Show() may not be necessary. It shouldn't be. I may have originally thrown that at the problem, then added Activate when it didn't do the job. Frankly, I can't remember. At any rate, my SDI apps don't display the sort of behavior you're describing, so it's worth a shot.

Actually, if only part or all of this combination solves this, if you'd report back what's what, I'd appreicate it.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform