Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Misbehaving Labels - VFP 5.0
Message
De
30/12/1998 17:41:46
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Misbehaving Labels - VFP 5.0
Divers
Thread ID:
00171764
Message ID:
00171764
Vues:
60
We just recently moved from txtLabels to lblBase in VMP. Once the labels and fields have been placed on the forms we save the form and go back in and now all the labels are randomly repositioned along the same line. To fix the labels we have to do the following.

Click on the label.
Hit any movement key and the label magically repositions itself correctly.
( You have to set the visible property to .T. when adding labes and other objects programatically )
Even though visible is the default it is Bold showing that it changed so reset
that to default.
Go into the width property and escape one time so that now the property appears bold.

I can guess why these things might cause VFP some confusion but I was wondering if others had experienced the same thing.

Of course the fix is to set the width property programically like so.

loLabelRef.Width = loLabelRef.Width && Cheesy I know.

Then lastly.

loLabelRef.RestoreToDefault("Visible")

Also I've had some forms that have odd behavior when the Visibile property is .T. but bolded for one reason or another.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform