Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tip of the Day --- Pageframe and Page Refreshing
Message
From
02/12/1999 18:44:59
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
 
To
02/12/1999 15:16:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00297873
Message ID:
00298210
Views:
45
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform