I was wanting to mess around with treeviews and other objects in the mscomctl.ocx. I initialized the ctrlframe and that's about it. I was wondering if anyone could show me or point me into the right direction with adding nodes and grouping them and images and so forth.
No you can't set it up in the OCX Propreties because your tree view OCX doesn't see your Image List OCX . Progress creates a control-frame for each of them. You really need to get the com-handle of the Image List to assign it.
I always add images using the custom property of the OCX properties of the ImageList.
Code:
chTreeView = chTreeView:TreeView.
chImageList = chImageList:ImageList.
chTreeView:ImageList = chImageList.
/* add a close folder image and a open image folder in position 1 and 2 respectively. */
chTreeView:ADD(,,"Root","Root",1,2).
No you can't set it up in the OCX Propreties because your tree view OCX doesn't see your Image List OCX . Progress creates a control-frame for each of them. You really need to get the com-handle of the Image List to assign it.
I always add images using the custom property of the OCX properties of the ImageList.
Code:
chTreeView = chTreeView:TreeView.
chImageList = chImageList:ImageList.
chTreeView:ImageList = chImageList.
/* add a close folder image and a open image folder in position 1 and 2 respectively. */
chTreeView:ADD(,,"Root","Root",1,2).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.