Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine added controls in a class ?
Message
 
 
À
13/03/2004 22:30:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00886046
Message ID:
00886097
Vues:
12
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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform