Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Order of Instantiation
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01234334
Message ID:
01234396
Views:
16
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.

Kurt
>Kurt,
>
>In the case of image lists for my treeviews I just drop the treeview(s) and the image list(s) and then in the init of the form do something like
>
>thisform.oleTree.ImageList = thisform.oleImageList
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform