Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tree control and image list controls created in code
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows 2000
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00966947
Message ID:
00967349
Views:
7
Jon,

Take a look at the treeview101 sample over on my website.

>I am trying to create a tree control programmatically. Here is a question:
>I create the control
>
>
>oTree=createobject('mscomctllib.treectrl.2')
>
>
>and add nodes, e.g.,
>
>
>oTree.Nodes.Add(.NULL.,'','ABC',CLOSED,'OPEN')
>
>
>This requires that I have an ImageList object defined and assigned to the tree control with the images with keys OPEN and CLOSED in it. I tried creating such an object programmatically:
>
>
>oImageList=createobject('mscomctllib.imagelistctrl.2')
>oImageList.ListImages.Add(.NULL.,'OPEN',_VR(IDB_OPEN))
>
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform