Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Order of Instantiation
Message
De
19/06/2007 18:14:30
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01234334
Message ID:
01234403
Vues:
15
>Hugo,
>
>That works, however you as the developer are required to remember to add all of the controls and then add code to your form's Init method to set things up. By having the treeview, toolbar, etc... dynamically add the required imagelist at runtime, then I don't have to do any special coding other that what's already defined in my base class.
>
>Also in a truelly 'object-oriented' approach, each control should behave correctly regardless of what other controls are on the form which is what I was trying to show with my example.

In fact TreeView is already misbehaving by itself, as it requires an imagelist - bad design, IMO. The treeview should have a collection of image filenames which it would pick during its instantiation, and so be completely self-contained, a true self-contained object.

We can only discuss the best patch for this misbehavior, and yours seems about right.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform