Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to move class from a prg into a classlib
Message
De
06/01/2010 14:28:27
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/01/2010 14:22:46
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
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:
01442466
Vues:
112
>>>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.

Sorry Dragan but that is not what I meant. Otherwise I posted the code that does what you are saying here on UT many years ago.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform