Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding property to a control
Message
From
27/05/2008 10:02:10
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01319573
Message ID:
01319658
Views:
12
> Adding property to the class you are editing is simple, but there must be a way to
> add a property to a control outside a class.

Regarding Proerties the others have answered. At Designtime you can only add to the class you modify. To modify a control within a form class you will need to modify the class of that control (what the property windows will show you as class property of that control). If that is equal to the baseclass you will need to replace that control with a class based on that baseclass control.

More general speaking: You can't add methods or properties to subobjects of a class in the class designer.

In the form designer - for SCX forms only - you can select a control or group of controls and save them as a class, which helps to make such class refactoring.

Bye, Olaf.
Previous
Reply
Map
View

Click here to load this message in the networking platform