General information
Category:
Coding, syntax & commands
>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
Hi Tamar,
Thanks for your reply,
You you mencioned : Is it not sufficient to disable the pages that aren't relevant and activate the first relevant page?
could you give me an example please.
I don´t know how to add a second pageframe programmaticaly, have you a simple example about i can do that ?
Best regards,
Luis
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only