Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Property ShowTips is not found
Message
From
07/04/2011 14:40:11
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01506315
Message ID:
01506425
Views:
112
>>So? Another form should not change ShowTips at runtime.
>
>It's a grid class that is used on the form. Why it can not change properties of its parent?

OOP principles. Objects should not directly change the internal properties of other objects. If something happens on your grid that is supposed to make the form change color, it should call upon a method of the form and ask it to change the color. It is wrong thinking to make the grid directly change the form's color property.
Previous
Reply
Map
View

Click here to load this message in the networking platform