Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top Level Form needs focus..
Message
From
06/09/2000 23:07:12
 
 
To
05/09/2000 23:12:04
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00411754
Message ID:
00413297
Views:
21
You need to _SCREEN.VISIBLE = .F. after the SHOW.
PUBLIC oForm1
oForm1 = CREAT([oForm])
oForm1.SHOW
_SCREEN.VISIBLE = .F.

DEFINE CLASS oForm AS FORM
	SHOWWINDOW = 2
ENDDEFINE
Dave

>Patric,
>
>Thanks for the information. I have had the trouble with both compiled and standalone EXEs. I have a fix but I consider this to be a workaround for behavior that isn't acting as expected.
>
>Best,
>
>DD
>
>>Hi Doug,
>>
>>Seems like I remember having a similar problem. However, it seems like the problem never existed when running the compiled exe file (it only appeared when running from within development mode.) Do any of your apps still not have the focus when ran as an exe rather than from the VFP environment?
>>
>>
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform