Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Yellow border
Message
 
 
To
08/03/2006 11:53:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01102436
Message ID:
01102492
Views:
18
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform