Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView & ImageList controls
Message
 
To
18/09/1997 08:58:29
Stoyka Kurteva
Busoft Engineering Ltd.
Bourgas, Bulgaria
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00050541
Message ID:
00050602
Views:
20
>Hi All,
>
> How can I associate an ImageList with TreeView control?
>
>Thanks
>
>Stoyka

First you need to place ImageList control to the form before the TreeView.
If you right click on the TreeView and select TreeCtrl Properties, then select your ImageList object from the ImageList combobox.
MS screwed up TreeView control (at least for VFP use) since version which has the size 332288, and dated 08/21/96
If you have those versions, then probably you will see nothing in some or all comboboxes there. In this case put in your TreeView Init method:

this.Object.ImageList = this.parent.oleImageList.Object
(supposing your ImageList control has name "oleImageList")

Probably the last way is the best way to do it.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform