>You can add specific code to the button
>
>... when button active the page
>this.parent.Addobj(this.name+"effect","shapeYellow",this)
>* shapeYellow bind it to the button ( move, anchor, .... )
>* deactivate
>this.parent.removeobject(this.name+"effect")
>
>
>unfortunately the VFP OOP model is not very flexible,
>and this code contaminates the Parent object because a button doesn't allow AddObject.
Hi Fabio,
After thinking a little bit more on the problem and speaking with my colleague (whos form this one is), I think we would put a shape on that container. Since button click's call common method, we would just operate this shape's coordinates and visibility.
In other words, instead of a new class we would deal with the problem in the particular form's instance.
If it's not broken, fix it until it is.
My Blog