Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug with label control AutoSize behaviour on hiddenPageF
Message
 
 
À
24/09/2000 17:51:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00420316
Message ID:
00420338
Vues:
24
Bela,

I think the issue is that VFP doesn't set the width property of am AutoSize label until the label is first painted on the screen. I have had to delay any method code that uses the .Width until very late (like Form.Activate()). You might be able to use the UIEnable event for your purpose.

>sublassed label control, with AutoSize set .t.
>Put it on a non active (non visible) page of a visible pageframe.
>
>Setting the caption of this label, its size won't change untill the page - containing this label -, become active.
>
>You can check this only programatically! (Don't forget, when you click to this page, the label will resized automatically!)
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