Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modifying Page Order in Pageframe
Message
From
26/08/2010 14:56:57
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01478677
Message ID:
01478681
Views:
31
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform