Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to move class from a prg into a classlib
Message
De
05/01/2010 14:22:46
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
05/01/2010 13:27:28
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01441978
Message ID:
01442234
Vues:
67
>>With the powerful features of PEM Editor (filtering by property/method name, sorting, viewing parent code, etc.) I find that my productivity of working on even Non-Visual classes is much faster when working in a VCX.
>>
>>So, I cannot adopt your preference for keeping Custom classes in a PRG. I am too spolied with PEM Editor. However, I will admit that there *are* times that I wish I could temporarily work on the VCX in a PRG, just for a few certain tasks, and then come right back to the VCX.
>>
>>Maybe one day!
>>.
>
>I think I will stick with native editor:)
>How do you work on non-visuals in a VCX? I vaguely remember I could add non-visuals to a VCX in very old times but I forgot how I could do it. Would you remind.

Using a builder - create an aSelObj() reference to the object being edited, then .newobject(...) the non-visual member to it. However, you must have the .prg where the member is defined in the Set Procedure if you want to open that class with a non-visual member again. IOW, it can be done, but it's more trouble than it's worth. I prefer to add prg-defined members at runtime; sometimes I place a shape as a placeholder on the form/container/page, and in the shape's .init() I .newobject() the member to shape's parent, set its position and size to that of the shape, then return .f. so the shape is gone.

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