Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to hide a block of controls
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to hide a block of controls
Miscellaneous
Thread ID:
01192092
Message ID:
01192092
Views:
61
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
Next
Reply
Map
View

Click here to load this message in the networking platform