Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to hide a block of controls
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01192092
Message ID:
01192094
Vues:
14
>Hi.
>I have a block of controls, Text Boxes, Labels etc in a particluar postion on a form.
>Depending on a parameter setting, I want to hide all these controls, and set up a nother block of controls, in the same area on the form.
>
>I'm wondering if there is a neat way of doing this. I know I can have a piece of code on the screen like:
>If Hide - .t.
> Thisform.Control1.Visible = .f.
> Thisform.Control2.Visible = .f.
>Else
> Thisform.Control1Visible = .t.
> Thisform.Control2,Visible = .t.
>Endif
>
>Is there another way of hiding a block, like putting some sort of a skin into that part of the form , which would hide everything under the skin ?
>(I dont eant to start using Page frames as there is a lot of code already for the exisitng controls, and also its only part of the form (with some of the controls only ) that I want to hide.
>
>
>I'm really loking for some altrnative ideas and would appreciate any feedback.
>regards,
>Gerard


Put all controls in container and then just play with Container.Visible property, something like:
thisform.ContainerThatHoldsAllControlsYouNeedToHide.Visible = NOT Hide
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform