Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close top form from toolbar
Message
De
27/01/2005 17:33:40
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00981030
Message ID:
00981539
Vues:
28
>>My main form which is a top-level form has A toolbar that is opened as in top-level form. What is a way to close main form from a click on a toolbar button?
>>
>>Thanks, Mark
>
>Forget variables, etc. You can only have 1 top-level form in your app so use the following code to get an object reference to your TLF:
>LOCAL loForm, loRetObj
>loRetObj = NULL
>FOR EACH loForm IN _SCREEN.FORMS
>    IF loForm.SHOWWINDOW = 2
>       loRetObj = loForm
>       EXIT
>    ENDIF
>ENDFOR
>RETURN loRetObj
>
Ok, I tried in a click on a button on a toolbar:
FOR EACH loForm IN _SCREEN.FORMS
IF loForm.SHOWWINDOW = 2
loForm.Release()
ENDIF
ENDFOR

So the toolbar desapears but the main form is stil there completelly unaccessible. My question is how to release top form from a toolbar.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform