Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top Level Forms
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00802520
Message ID:
00802950
Views:
46
Well, it would be nice to find a solution that lets the form get focus and has no "flashing", but I'm glad that I could help. I'm going to research this again later and try to get to the perfect solution . . .


>Hi Russell,
>
>I have it fixed thanks to your tip below. Here's the rules...
>
>1. DON'T do a SCREEN=OFF in config.fpw
>2. DON'T set _SCREEN.VISIBLE = .F. anywhere.
>3. Place APPLICATION.VISIBLE = .F. in the Activate method of the top level form.
>
>...as you state the VFP _SCREEN flashes momentarily, but the form does receive the Windows focus.
>
>Thanks to everyone who helped.
>
>Regards
>Doug Johnston
>
>
>
>>Whoops - I clicked the wrong darned button, so I posted once without actually typing anything. Sorry.
>>
>>Doug - I had not had the need to write a app using a top-level form until 6 months ago. I had the same exact problem. There were many suggestions, none of which would work for me. It seems that one of them worked, but caused some other problem (it fades in my memory now). However, I recently saw a thread in the UT on this and I believe there was a suggestion that I hadn't tried. I may have to go back and try it, but it's a little bit moot now since the app is now out to over 2000 people (I just put application.Visible = .f. in the Activate of the form - there's a KB article on this, don't put it in the Init - or was it the Load? - anyway it needs to go in the Activate). This causes the "flashing" problem where the user sees the VFP main window, but then it's set invisible. I decided that wasn't that big a deal - I'd rather have the app get the focus properly. We've had a few minor installation issues for tech support, but not one person has mentioned the "flashing" issue. I'd
>>prefer that the user never sees that, but it just ain't no big hairy deal. Anyway, if you can, search the threads for "top level" and you should be able to turn up that other thread. I forget exactly what the suggestion was, but all the standard ones were there along with that "new one."
>>
>>Russell Campbell
>>
>>
>>
>>>Hi Fred,
>>>
>>>Yes, both my applications have controls which are supposed to receive focus, but they will only do so once the form has Windows focus. This really appears to be a Windows (for me WIN2K PRO) thing, as I get the same problem with Mozilla whenever it is started.
>>>
>>>I have set SCREEN=OFF in the config.fpw, but this makes no difference.
>>>
>>>Regards
>>>Doug Johnston
>>>
>>>
>>>
>>>
>>>>>I've noticed that when I open a top level form and hide the screen in the same action, that the top level form is not active. Is there a way to open a top level form and have it get not only application but Window's focus?
>>>>
>>>>If you create your .EXE with a CONFIG.FPW with SCREEN=OFF in it, do you see the same thing? Does your top-level form have any controls on it that can receive focus?
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Previous
Reply
Map
View

Click here to load this message in the networking platform