Salu2 James!!
*:* I'm using the MereMortals framework which loads the imagelist and
*:* treeview controls dynamically at runtime. So, just to eliminate that
*:* layer I just created a form and dropped the two controls (imagelist and
*:* treeview) on the forms and added that code to the treeview's Init
*:* method. I got the same error.
Sorry i don't use MMF...
*:* However, when I right-clicked on the treeview control and defined the
*:* imagelist in the treeview properties form that comes up and it worked.
*:* So now I'm wondering what's the difference, and how do I get the same
*:* effect through code?
Try it :
Change this code lines :
IF TYPE('This.ImageList') == 'O'
This.TreeView.Object.ImageList = This.Imagelist.Object
ENDIF
By :
IF TYPE('This.ImageList') == 'O'
This.TreeView.Object.ImageList = This.Parent.Imagelist.Object
ENDIF
*:* Aloha,
Salu2!
*:* James
Att.
William Chavez