Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Collection Object
Message
De
11/10/1999 21:30:59
 
 
À
08/10/1999 10:05:26
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00273466
Message ID:
00275255
Vues:
26
>I understand that rationale, but I don't agree with it. Just because the property is named "controls" doesn't mean that you could had any old object to a pageframe. There are other cases where you can't add some objects to controls with controls properties. All the naming convention does is make it much more difficult to iterate through a hierarchy.

IMHO, we are both right, only for different reasons! :) I meant that having a Pages collection makes it easier to iterate only the page objects. This doesn't exclude a Controls collection, but since there are no other objects that can be added to a PageFrame...

>If they had used "controls" for the collection property, then they could extend the valid container items without breaking any code.
>
>Also, off-topic a bit, why not add other objects to pageframes? Many times I'd liked to have added a label to a page frame, or even some controls that follow through all pages. Instead I have to add them to the form, but that breaks a logical hierarchy, IMO.

I disagree with having visual objects added to a PageFrame and visible in all pages, although, sometimes, it may be good. Personally, I wouldn't use such a feature, but, IMHO, the language should not prohibit it. Anyway, nobody stops you from creating a new Wish item on this subject.

I really don't see any reason for not adding non visual objects to a Page Frame. IMHO, this is a useless limitation.

Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform