Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NEWOBJECT() Has no parent.
Message
 
 
To
29/06/2000 11:18:14
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00384767
Message ID:
00386512
Views:
36
David,

>I actually use my object in a few other objects - labels, buttons, textbox, optiongroups, etc., and it's really cool, because I can put all sorts of neat logic into it very generically. For example, if the button gets too small, I can resize the font.

To me it just doesn't make sense to resize these kinds of items on a form. But that's purely my preference. I don't know of any mainstream application that has that sort of behavior.

>You could still do this all with the resize method, but the great thing about putting it into a single object is if I decide to change the behavior, I only need to do it once, rather than in each class.

You still don't have to hold object references for the long term. The resize object could just iterate the thisform.Objects[] collection.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform