>>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)
Gregory