>>>But he wants to size every command button on the form at the same time. Including buttons on other forms. Unless I misunderstood what he was asking. How would you handle this. So if he resizes one button, all the other buttons get resized at the same time.
>>
>>Well, that's what I thought at first to < g >, but he clarified it in message#
267731. He only wants the control the mouse is over resized and then unsized when the mouse moves off, so letting each control do itself should work.
>>
>>If you wanted to do them all, Erik's runall() method would be the ticket. It hits everything without needing a control array. Also the problem with trying to store an array of each control is what happens when a control is added at runtime.
>
>You message link also affects the next button. Hmmm. It looks like your right. You can even have a subclassed command button that would simplify the process even more.
That's probably the way to do it. Just add a new prop to your base class .lDoSizeFX, and check it from the mousemove. Instant FX for every button (or not :)
The message link is nice. Thanks Michel (and MikeH for suggesting it).
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!