Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing controls from a form
Message
De
09/03/2021 10:28:15
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01678811
Message ID:
01678838
Vues:
47
Back in the dawn of time, I created a class containing the label and the textbox. I keyed off of in-app security and if someone was not supposed to see these textboxes, a simple Setall('cls_lbltxt', 'visible', .f.) sufficed.

>Hi,
>
>I am wondering how others deal with the following situation. Here is how I do:
>
>I have a form where some customers need to see a row of controls (three labels and three textboxs). Other customer do not need to see or use them.
>I place these controls on the form and set the Visible of all to .T.
>At run time, when the form is initialized - based on some setting that calls for these controls not be be used - the code sets the property Visible of all controls to .F. Then, there is a LOOP through all controls and the TOP value is decreased by 26 (the space for these controls).
>This works. But I wonder how others would do it.
>
>TIA
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform