Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
How to hide a block of controls
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
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