Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Page Frame Display
Message
De
22/07/2008 17:35:38
 
 
À
22/07/2008 16:40:35
Robert Dinsmore
Dinsmore & Associates, Inc.
Lexington, Kentucky, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01333293
Message ID:
01333312
Vues:
7
>I have a form with a page frame. On page 2 of this frame, there is another page frame with four pages for different transaction types. The particular page displayed is determined by a transaction code. For example, if the transaction code is a "DP" the first page is active while the other three are disabled. If the code is "WT", the second page is active and so on.
>
>The problem is that when you enter page 2 of the main frame and the code is "WT", page 2 of the transaction frame is enabled but it doesn't display unless you click on the page 2 tab. (The logic for enabling/disabling the pages is located in the main frame page 2 Activate method.) Instead, page 1 always shows even though it is disabled and not the active page.
>
>This only happens the first time that page 2 of the main frame is activated. Therefore, if you go back to page 1 and then to page 2 a second time, the proper transaction page is displayed.
>
>While this is not a big problem, it is a nusiance to the user. Any ideas as to how to make the proper page display the first time?
Hello,
I am not sure what your code looks like, but try to issue the following command after page2 on the second frame is enabled. Of course you might have different page and pageframe names.

Thisform.PageFrame1.Page2.PageFrame1.ActivePage=2

Yelena
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform