Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Label.AutoSize
Message
From
16/04/2008 13:55:41
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01310962
Message ID:
01311235
Views:
25
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform