Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enter .exe without a click
Message
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Miscellaneous
Thread ID:
00494581
Message ID:
00494970
Views:
21
>>>>Compiled .exe file that goes opens a form when the .exe file is doubled clicked.
>>>>The application come to the front of all windows, the form displays and the cursor is blinking in the form on the correct textbox.
>>>>
>>>>But... you have to click the screen or the form before you type. No matter what I seem to try, the app does not have focus until I click it.
>>>>_screen.activate, _screen.windowstate, keyboard '{ENTER}' ... NOTHING WORKS till I click the screen to give it focus.
>>>>
>>>>Can anyone give me any ideas to try?
>>>>
>>>Robert,
>>>
>>>Is this an SDI application? IOW, is the form top-level?
>>
>>It is the only form on the screen.
>>1) You click on the .exe icon from the desktop.
>>2) The program comes to the front of ANY and All windows applications that are currently running.
>>3) It is a form I use all the time (copy of a baseclass with a few extra properties added)
>>4) The form displays, but even the application itself is subdued, as if there is another windows app in front of it. IT looks the sames as if you had say 'Word' running in front of the application and you have to click the program to get focus. Click anywhere on the entire screen and it behaves normal.
>>????
>>
>>Running Windows 2000.
>
>Robert,
>
>Well, I've got good news and bad news for you. First, the good...
>
>I've experienced what I think is the same thing. It's occurred with SDI applications. IOW, applications that use a top-level form (ShowWindow = 2) with the main VFP screen (desktop) hidden and overcome it. If this applies, then it's the same thing. But now the bad...
>
>I'm not exeactly sure of the how. I can only tell you what I do now, and I no longer have the problem.
>
>1. The application must have a configuration file (config.fpw) with the line: SCREEN=OFF
>
>2. The code the displays the form reads something like:
DO FORM Myform.scx NAME oMain LINKED
>oMain.Show()
>oMain.Activate
>READ EVENTS
If this fixes your problem, I'd appreciate hearing about it. This questions seems to have come up before and may be a good topic for an FAQ.

George,

Sorry .. didn't work. I've actually lived with this for some time and there hasn't been complaints. I'm the picky one and don't like the behavior.

Robert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform