Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using treeview activeX
Message
From
23/05/1998 02:55:58
 
 
To
22/05/1998 07:59:38
Ryan Hirschey
Federal Reserve Bank of New York
New York City, New York, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00100616
Message ID:
00101374
Views:
42
>>>>Thanks a lot.
>>>>It works fine. But now I've another problem.
>>>>How to make always visible icons associated to items regardless they are selected or not ?
>>>>Thank you again
>>>>Alessio
>>>
>>>I'm not sure I understand your question. Could you describe it more completely? Are you referring to using the treeview and imagelist together, or is this question about only one of these controls? Thanks.
>>
>>I was trying to put pictures in the treeview control, so I have to reference to a imagelist control (is it right ?), It works fine but icons associated with items are showed only when items are selected then they become invisible.
>>I tried with selectedimage property and expandedimage property but they don't give me the result I want.
>>To be more exact , i want to build a control like the project manager window.
>>Thank yoy again
>>Alessio
>
>You are correct, you do have to reference the imagelist. When adding a node, you can assign an icon to the node in the treeview. Specify the following:
>
>object.Add(relative, relationship, key, text, image, selectedimage)
> ..
>The Add method syntax has these parts:
>
>object Required. An object expression that evaluates to an object in the Applies To list.
>
>relative Optional. The index number or key of a pre-existing Node object. The relationship between the new node and this pre-existing node is found in the next argument, relationship.
>
>relationship Optional. Specifies the relative placement of the Node object, as described in Settings.
>
>key Optional. A unique string that can be used to retrieve the Node with the Item method.
>
>text Required. The string that appears in the Node.
>
>image Optional. The index of an image in an associated ImageList control.
>selectedimage Optional. The index of an image in an associated ImageList control that is shown when the Node is selected.
>
>There is a class in the files section of the Universal Thread that can do all of this for you. It works really well with data. It is called Datatree. It makes using the treeview almost painless. If you're looking for a treeview control that mimics Windows Explorer for browsing files, check out
>
>http://www.mvps.org/ccrp/
>
>This site has some replacements/enhancements to many standard windows controls, including treeview.
>
>Hope this helps.

Thanks again I'm going to explore the site you mentioned and I'll let you now
Alessio
Previous
Reply
Map
View

Click here to load this message in the networking platform