Hi Sergey:
Spot on, as usual. Thanks for this insight - I never thought about the button retaining focus. In a real-use scenario, when the caption is changed, focus would always jump to the text box that the "caption" button relates to. Whilst creating the class, it doesn't do that - yet!
Thanks again!
Best
>Hi Garry,
>
>What you're seeing, is the Hot Tracking effect for the button that has focus. If you want to turn it off, try to add
>This.SpecialEffect = 1
>* LostFocus
>This.SpecialEffect = 2
>
>>
>>I am trying to create a button class that appears as a label until you click it upon which it displays a list of values to choose as the button's caption. I have set the special effect to "Hot Tracking" and all is well if you hover over the button - the button displays as a button. When you are not hovering over the button, it looks like a label.
>>
>>However, after clicking the button, the Hot Tracking effect is lost and thereafter, it appears like a normal button. If I then hover over the button, I get a horrible thicker border at the bottom and right edge of the button.
>>
>>Any ideas what I may be doing wrong here?
>>
>>Win2K SP3, VFP8 SP1
-=Gary