Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add object to Control class?
Message
 
 
À
19/03/2005 12:44:23
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Versions des environnements
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Divers
Thread ID:
00997603
Message ID:
00997606
Vues:
13
>*** VFP9 Beta ***
>
>I created my custom control based on the Control class. I initially placed a label and a command button on a form, positioned them as I needed then Saved As Class...
>
>Now I need to add another control (a shape) to my control but everytime I'm told that I cannot add to a "non-container" class. Does this mean that I have to start all over again? If so, that would be really annoying :(

I've no problem adding a shape to the control based class in VFP9RTM. My steps:
1. CREATE CLASS mycontrol as control OF test
2. Drop a label and a button
3. Close Class Designer and save class
4. MODIFY CLASS mycontrol oF test
5. Add a shape
...

BTW, VFP9beta expires at the end of the month.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform