Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I make page unvisible?
Message
 
 
À
31/12/1999 10:55:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00292684
Message ID:
00311367
Vues:
32
Hi Mike,
>
>>Ok, no problem. Right now I'm going to concetrate on class dessign for user's input (Ed's and Ken's suggestions). Just answer me to my both e-mails, home and work:
>
>My class builds the tabs based on the order of Pages array, which may not necessarily be the order they are shown in. The common cause is when you delete a page not on the end, and then add another one, then change the PageOrder to move it from the end. In order to fix this, the built-in behavior

Yes, it is exactly my case.

to change pages automattically would be wrong. Say you have 8 pages, delete five, now you change the PageCOunt to eight, and it adds a new one to the end, and you move the tab order to 5. Now, take make the fifth shown page active, you do: ActivePage = 8, because it was created last so its last in the Pages array.
>
>While special code might be written to save this, I don't think I'll add it myself. So you can either subclass the page class AND you've have to make a

Ok, does it mean, that we can not use your class if we delete/add several pages before switch? Is it hard to use PageCount instead of Pages() array?

class out of the Option Group: OR, you can cleanup your Pages Array. Its basically done by Cut and Paste of the controls on the pages to a new page, you may need to add more pages to workwith temporarily.

I'm not sure, that I understand, what do you mean here...
>Does this make sense?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform