>>Hi Terry,
>>
>>The Status Bar behavior in VFP always was flaky. In that particular case it should display StatusBarText of the control with focus when mouse pointer moves to the "neutral" area. You can call it a bug because current behavior doesn't make any sense.
>>Just an idea how to clear status bar
>>IF NOT EMPTY(_VFP.StatusBar)
>> SET MESSAGE TO
>> * Or
>> * _VFP.StatusBar = ""
>>ENDIF
>>
>
>Hi Sergey
>
>Thanks. Has this never bothered you? The text isn't necessarily what was displayed before moving to the neutral area. Don't know why it gets "stuck" on the button class's text. Of course, the close button would have been the last button pressed on the previous form.
>
>I'll give your code a go. Not sure where to put it - perhaps in the MouseMove event of the form?
Hi Terry,
I tell my users to ignore Status Bar messages. Not they pay any attention to them anyway. :)
Yes, the code should be in the MouseMove event as comment implies. :)
--sb--