Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modifying Page Order in Pageframe
Message
De
26/08/2010 14:56:57
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01478677
Message ID:
01478681
Vues:
30
>>I have a form with a PageFrame (pfSalesOrder). The PageFrom and two pages (pgNewItems, pgShipping).
>>
>>I want to modify the PageFrame by adding a third page (pgChanges). Based on some condition I want either pgNewItems or pgChanges to be the first page displayed and the other to be invisible. pgShipping will always remain as the second visible page.
>>
>>What I did was increase the PageCount to 3. I set the PageOrder for pgChanges to be 2 and set the PageOrder for pgShipping to be 3.
>>
>>In the form's Init method I have
>>IF myCondition
>>     thisform.pfSalesOrder.removeobject('pgNewItems")
>>ELSE
>>     thisform.pfSalesOrder.removeobject('pgChanges")
>>ENDIF
>>
>>Question 1: Is there some way to make a page invisible without removing it the from the PageFrame?
>>
>>After removing pgNewItems the form displays pgChanges as the first page and pgShipping as the second page. However, pgShipping is the Active page.
>>
>>I know how to fix this in code but.......
>>
>>Question 2: Is there some property I can set so that PageOrder is also the ActivateOrder
>>
>>Thanks..........Rich
>
>No on both questions.

Thanks. I know what needs to be done. Was just hoping there was something better.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform