Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine added controls in a class ?
Message
From
15/03/2004 12:29:50
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00886046
Message ID:
00886359
Views:
15
Hi David,
Thanks, I had seen Pemstasus( , , 6 ) but somehow overlooked how to apply it to objects.

>Bill,
>
>Is this for a designtime builder?
>
>You can use amembers( , , 2 ) to get a list of contained objects.
>
>And pemstatus( , "somecontainedobjectname", 6 ) && returns .f. for anything you've added to the object.
>
>>I have a container class with a pageframe in it. I subclass the container and add controls onto some of the pages in the pageframe.
>>
>>Is there some way I can easily get a list of those controls that have been added to the subclass?
>>
>>Amembers() will allow me to see what controls have been added to the container in the subclass, but I can't find a way to see what has been added to the pages.
>>
>>Aselobj() will allow me to get a list of every control in the subclass, but it doesn't tell me which ones have been added.
>>
>>The closest I can get is to use aselobj() to drill down through all the controls and use amembers() to check for changed properties, and if the Top and Left properties have been changed, it's a candidate for being an added control.
Bill Morris
Previous
Reply
Map
View

Click here to load this message in the networking platform