Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add Property or Method to Control
Message
 
 
À
17/12/1998 07:51:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00168417
Message ID:
00168640
Vues:
29
Karl,

In the form/class designers you can only add properties and methods to the outermost object. So in the form designer that is the form (or maybe formset).

If you want to add something to a textbox you need to subclass the textbox and add to the subclass in the class designer. Then use your textbox class instead of the VFP baseclass. You can use the command:

create class cTextbox of mylib as textbox

>It is easy to visually add a property or method to a form (Form/New Property) or to a class (Class/New Method).
>
>My VFP Bible (Using VFP 5 by Michael Antonovich) indicates that you can add properties and methods to controls and forms. It shows an example for a form but not for a control. The book has examples where a method is added in code with: PROCEDURE - END PROCEDURE.
>
>I would like to be able to add a method to a textbox control visually. Can this be done? How?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform