Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tree control and image list controls created in code
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Tree control and image list controls created in code
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows 2000
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
00966947
Message ID:
00966947
Vues:
101
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))
Where _VR(IDB_CITY) is C++-eese for the variant reference to the "...bitmap ID saved in the resource of your project. You can use "Resource-on-the-Fly" technology to add or select bitmap resource in your project" (http://www.capitolsoft.com/Articles/Using_Imagelist_Control.htm). Does anyone know how to get this _VR(IDB_OPEN) passed in VFP?

Thanks.

Jon Melvin
jonm@vi-i.com
Dr. Jonathan D. Melvin
Vision Implementers, Inc.
www.vi-i.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform