Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hiding some pageframe.activepage under conditions
Message
De
07/03/2024 06:03:08
 
 
À
07/03/2024 04:35:18
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01687673
Message ID:
01687674
Vues:
63
J'aime (1)
>Hello community,
>
>On my form i have my main page "myform.pageframe1" with several adicional pages.
>Also, they are 2 buttons, one for clients and another one for Suppliers.
>
>Suppose for client i have myform.pageframe1.activepage nº 1 , 2 , 3 and 4, and for suppliers i have myform.pageframe1.activepage nº 4,6,7.
>What i need is when i click on button Client the activepages 1,2,3 and 4 are visible, but if i click on button Supplier thoses activepages become invisibles and put visible the pages 4,6 and 7 and the reverse also.
>
>I need to know how can do that.
>

Page doesn't have the Visible property, so you can't just hide these. Is it not sufficient to disable the pages that aren't relevant and activate the first relevant page?

If that won't work for you, then maybe what you really need is two different pageframes, only one of which is visible at the same time. Since one page seems to apply in both cases, maybe save all the controls for that page into a container class and put that container onto a page in each pageframe.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform