Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh(), Paint() and Show()
Message
De
27/07/2000 22:58:45
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00397935
Message ID:
00397988
Vues:
19
>>I'm using some code out of a book which instantiates a form and adds the object reference to an array property of the goApp. I'm in VFP6 and the code may have originally been written for a previous version.
>>
>>After everything else it includes:
>>
>>    .Refresh()
>>    .Paint()
>>    .Show()
>>
>>Help says that :
>>Refresh() "Repaints a form or control and refreshes any values, or refreshes a project's visual display."
>>and Show() "The Show method sets a form or form set's Visible property to true (.T.) and makes the form the active object. "
>>
>>Assuming I haven't added any code to the Paint method of any of my forms, Do I need the .Paint() ? Do I need to call Refresh() in the Show(), assuming I specifically call Refresh() each time I call Show() ? (This app doesn't hide anything right now.)
>>
>>Anything else I'd regret if I removed Paint() and took the Refresh()'es out of the Show() ?
>
>Cindy,
>
>Paint() is an event, Show() and Refresh() are methods. Drop Paint().

George,

Thanks. In this case, Refresh() and Show() do exactly the same refreshing, but Show makes the form visible.

I think I'm going to leave out the Refresh() and just use Show(). No one has said that this would be a big mistake.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform