General information
Category:
ActiveX controls in VFP
>Compadres,
>
>I created an ActiveX(formerly OLE) TreeView object in Visual FoxPro 5.
>I made a table with the node names and numbers that designate the
>parent for each node. In the form Init Method
>we scan the table O' Nodes and like magic the nodes are populated...
>
>It works... but all I get is a tree hierarchy with words and lines... thus:
>
>RootNode_
> |_Parent1Node_
> |_Child Node
>
>But even after adding a Microsoft ImageList object on
>the same form I don't get the cool little icons for each tree node like I should. I added icons to the Imagelist and attempted to
>put the ImageList name in the ImageList property of the
>TreeView control. But the TreeView object acts like it cannot even see the ImageList object.
>
>The imagelist property seems to be broken...
>
>When I right-click on the treeview control and TRY to set the imagelist property
>the TreeViews imagelist pulldown only shows as the name of possible
>ImageLists. Trying this in VB, this property pulldown automatically listed the name of the ImageList I had put onto the form, and it works perfectly.
>
>The imagelist property fails to recognize the fully configured imageList I set up on the form. This is odd...
>
>Is there a work-around or step that I missed?
>
>Regards,
Don't assign the imagelist at design time, assign it at runtime.
Steve
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only