Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual Class Builder
Message
De
09/09/1999 11:20:07
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
 
À
26/08/1999 12:09:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00248040
Message ID:
00262906
Vues:
24
Eric,

Just a couple of questions:

1. Is the only way to create a composite class stored in a VCX file through the CREATE CLASS command?

2. Using the CREATE CLASS command, I will need to close the window programmatically. I have tried an ACTIVATE WINDOW "Class Designer" and a KEYBOARD "{Ctrl-W}" with no success. How can I close the designer window?

Thanks

Rex

>Yep.
>
>>Does AddObject work in a builder?
>>
>>>AddObject?
>>>
>>>>OK guys,
>>>>
>>>>Thanks to the responses here, I have created a builder to create the subclass containers I need. Now, how can I create instances of objects in these containers?
>>>>
>>>>TIA
>>>>
>>>>Rex
>>>>
>>>>>After you issue MODIFY class, you can access any object through a builder program. The program need not be even registered as the builder for that object, you just need to get it a reference to the object. You can do this with ASELOBJ, or with SYS(1270).
>>>>>
>>>>>>Hi Erik,
>>>>>>
>>>>>>What I was looking for was a way to access the class to change properties programmatically. I found it in _screen.forms[something], but was wondering is a better way exists?
>>>>>>
>>>>>>Thanks
>>>>>>
>>>>>>Rex
>>>>>>>MODIFY CLASS MyClass OF MyClassLibrary.vcx
>>>>>>>
>>>>>>>>Hi Mike,
>>>>>>>>
>>>>>>>>Craig Berntson showed me the CREATE CLASS command which works great. The only problem I have now is how to reference the newly created class.
>>>>>>>>
>>>>>>>>Any ideas
>>>>>>>>
>>>>>>>>Rex
>>>>>>>>
>>>>>>>>>Hi Rex,
>>>>>>>>>
>>>>>>>>>>I it possible to have a builder create classes in the Class Designer?
>>>>>>>>>>If so, what is the syntax?
>>>>>>>>>
>>>>>>>>>Learn the Define Class command. Then you can write out strigns of syntax by vareiables to a class.prg file . Now you will have your class. Note: you cannot create ot visually, or store it in a VCX, yuo will have to do a SET PROCEDURE TO class.prg.
>>>>>>>>>
>>>>>>>>>To help you learn DEFINE CLASS better, I suggest you open an existing visually designed class int he class browser and click on view source code. Then you can cut and paste and use that as a template.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform