Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RTF control can't be added to a classlib
Message
De
24/08/2007 10:39:52
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
24/08/2007 10:30:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Divers
Thread ID:
01250150
Message ID:
01250212
Vues:
15
>>I've subclassed the RTF box 6.0 SP2 (IIRC) as olecontrol. Worked fine, as usual.
>>
>>Then I needed it in another project, and simply wanted to do ADD CLASS myrtf of mylib to \path\otherlib. I got an error sayin "class invalid for this container", which is an error you get when you want to, say, add a toolbar to a container, or a formset to a form.
>>
>>OK, no big deal, the class had no more than ten properties non-default and no code at all, so it was quite easy to recreate. Still, it bugs me that something like this should happen.
>>
>>Anyone with similar cases, or at least to confirm this?
>
>Not sure if this helps, but from the VFP help:
>
>"Visual FoxPro generates an error if the class definition cannot be located or a class definition with the name you specify already exists in ClassLibraryName2"
>
>Also, what happens if you drag the class via the Project Manager to add to the second VCX?

Same error - "Object class is invalid for this container". I just created a dummy vcx with one (untouched) form class in it, added it to the project, and tried to ctrl+drag and drop the rtf control from where it was into this classlib.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform