Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to move class from a prg into a classlib
Message
From
07/01/2010 13:37:48
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
06/01/2010 14:28:27
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01441978
Message ID:
01442658
Views:
225
>>>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.

We had different definitions of "add" in our heads :).

Say, do you also have this experience when searching for an useful bit of code on UT - that what exactly what you need is something you wrote yourself, posted here and forgot about it? Or am I just more advanced in the forgetting department?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform