treeview and imagelist

wzj90023

New Member
i have two problems to need your help.
phases as below:
1 insert ms treeview sp6 to 4gl window.
i can add and spread the nodes.
2 i insert ms imagelist sp6 to the same window. then i add some .ico files through custom button. i know i need to set the treeview.imagelist.
1Q: how do i set the treeview.imagelist?
3 in addition i want to change the font style of node in programe.
2Q:how do i do?
 

jongpau

Member
Try this to set the imagelist (you'll need to use the correct names of the com-handle variables as specified in your program).
Code:
[FONT=Courier New]PROCEDURE initialize-controls:[/FONT]
[FONT=Courier New] ASSIGN chTreeView = chTreeView:CONTROLS:ITEM(1)[/FONT]
[FONT=Courier New]        chImageList = chImageList:CONTROLS:ITEM(1)       [/FONT]
[FONT=Courier New]        chTreeView:ImageList = chImageList.[/FONT]
[FONT=Courier New]END PROCEDURE.[/FONT]
I have never had the urge to change the default font used in one of these controls, so I won't be able to help you out with that one.

Good luck,

Paul
 
Top