Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh(), Paint() and Show()
Message
 
To
27/07/2000 19:08:40
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00397935
Message ID:
00397979
Views:
18
>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

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform