Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ImageList not available in TreeView and ListView Prop. T
Message
 
To
23/07/1999 12:42:56
Kam Lee
SUNY-Health Science Center
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00245398
Message ID:
00245816
Views:
10
I have had success with dropping the TreeView first, and then the ImageList.
Assign the ImageList to the TreeView in the ImageList Init event:
*oImageList Init
*oTreeview = the forms TreeView control
*oImageList = the forms ImageList control
* Pictures for the image list
this.listimages.Add(1,,LoadPicture("IMX\misc14.ico")) && 2
this.listimages.Add(1,,LoadPicture("IMX\misc15.ico")) && 1
* Assign TreeView an ImageList
thisform.oTreeview.imagelist=thisform.oImageList
&&This may work also: "thisform.oTreeview.imagelist=this",
&& but not tried.
&& You may need to assure Version 5 TreeView for VFP 5, etc.
&& You may also "populate" your oTreeView Nodes here
* .. do until done
thisform.oTreeView.Nodes.Add(,1,"R"+s_cus_act,cus_dat.cus_nam,2,1) && Root node of treeview
* ...done
Hope this helps
Terry
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform