Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Label.AutoSize
Message
De
16/04/2008 13:55:41
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01310962
Message ID:
01311235
Vues:
26
>>Stupid question ... You're sure that This.label1.AutoSize = TRUE ?
>>_
>>>A good thought.......Unfortunately, neither DOEVENTS nor INKEY() change the behavior. Setting the caption on the label does not seem to reset the width.
>>>
>
>Gregory,
>
>In earlier VFP versions you have to switch visible property of the label back and fourth to make it resize.

Dunno Nadya,

I've only needed it once - in vfp6 - and this worked back then
=this.AddObject('_' + padl(m.i, 4, '0'), 'MapMultiLineToolTipLabel')
		with this.Controls(this.ControlCount)
			.Top = m.nHeight
			.Left = 5
			.Caption	= aa[m.i]
			
			
			.AutoSize = TRUE
			.Visible = TRUE
			=INKEY(.0001)
                            && here the width was correct
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform