Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stupid label question
Message
 
 
À
12/11/1998 00:13:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00155701
Message ID:
00157052
Vues:
74
Vlad,

The code fragment you posted used AddObject() so it had to be set .t. I do believe it can occur with a label put on a form in the designer, so it's .Visible isn't explicitly set .t., Although I guess internally VFP may be doing AddObject() and setting .Visible = .t. as it constructs a form, I don't know if there's any test we can run to know that. Maybe in VFP6 with a Visible_Assign method?

But anyway AutoSize and WordWrap really are mutually exclusive features. I find that a TextBox or EditBox works better for the dynamic text on the form that the original poster was looking to achieve.

>That's what I said. It will happen to any label (VFP's Label or any derived class) (that has AutoSize = .t. and WordWrap = .t.) when Visible is set to .t.
>
>But only when Visible is set to .t.
>
>>It'll happen to a label placed on a form in the designer too.
>>
>>>There's no need for user defined classes or any complicated situation like the one in the example. The GPF is generated if Visible is set to .t. (even if it was .t. before) for a label that has both AutoSize and WordWrap set to .t.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform