Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Top Level Form needs focus..
Message
 
À
06/09/2000 23:07:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00411754
Message ID:
00413500
Vues:
21
Does this need to be specifically *after* the show? I have this in my startup .prg but it is before the SHOW().

>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
Everything we see or seems
Is but a dream within a dream
- Edgar Allen Poe
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform