Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement