Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tip of the Day --- Pageframe and Page Refreshing
Message
De
02/12/1999 18:44:59
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
 
À
02/12/1999 15:16:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00297873
Message ID:
00298210
Vues:
44
>How about this:
>FOR i = 1 TO THIS.PageCount
>   IF THIS.Pages(i).Pageorder # THIS.ActivePage
>      THIS.Pages(i).Refresh()
>   ENDIF
>ENDFOR

I did about the same thing, but I haven't needed to refresh pages that aren't on top. I made a GetActivePage() in the pgfbase class. Then whenever I need a reference to the currently active page from the pageframe's point of view, it is available.
* GetActivePage()
* Return the Active page Object Reference.
* The ActivePage property is the number of the active pages,
* but, when the pageorder is rearranged, is isn't the correct
* index for the Pages collection.

LOCAL ActivePage, oPage
IF This.ActivePage = 0
   ActivePage = .NULL.
ELSE
   FOR EACH oPage IN This.Pages
      IF This.ActivePage = m.oPage.PageOrder
         ActivePage = m.oPage
         EXIT
      ENDIF
   ENDFOR
ENDIF
RETURN m.ActivePage
Charlie
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform