Dec 4, 2003 #1 gsrajput Programmer Jan 10, 2002 25 US I would like to know, if any dynamic coloring facility is available in Microsoft's tree control.
Dec 4, 2003 #2 Juris Programmer Jul 22, 2000 71 EE No, but you can change node background/fore colors directly by setting their value in code. Also you can set background color for whole Tree controls by calling API function. See FAQ. Upvote 0 Downvote
No, but you can change node background/fore colors directly by setting their value in code. Also you can set background color for whole Tree controls by calling API function. See FAQ.
Dec 4, 2003 Thread starter #3 gsrajput Programmer Jan 10, 2002 25 US Juris, Thanks for replying. Do you 've any code example which I could use? Upvote 0 Downvote
Dec 4, 2003 #4 Juris Programmer Jul 22, 2000 71 EE I need a little time to comment code-snippet in English. Upvote 0 Downvote
Dec 5, 2003 #5 Mike Gagnon Programmer Apr 6, 2002 8,067 CA gsrajput This thread might have your answer. thread184-717065 Mike Gagnon If you want to get the best response to a question, please check out FAQ184-2483 first. Upvote 0 Downvote
gsrajput This thread might have your answer. thread184-717065 Mike Gagnon If you want to get the best response to a question, please check out FAQ184-2483 first.
Dec 5, 2003 Thread starter #6 gsrajput Programmer Jan 10, 2002 25 US Mike, Thanks much for your help. I found later there is backcolor and foreColor property in the tree control. Please see code below. e.g. #define CHILD_NODE_LOC 4 *** Add a node oNode = Thisform.oletree.Nodes.Add(ALLTRIM (cParentid),CHILD_NODE_LOC,ALLTRIM(cKeyid), ALLTRIM(cSubject),,) **Change Fore color of the node to the Red oNode.ForeColor = Rgb(255,0,0) *** Set Font to bold of a node oNode.Bold = .t. G. Upvote 0 Downvote
Mike, Thanks much for your help. I found later there is backcolor and foreColor property in the tree control. Please see code below. e.g. #define CHILD_NODE_LOC 4 *** Add a node oNode = Thisform.oletree.Nodes.Add(ALLTRIM (cParentid),CHILD_NODE_LOC,ALLTRIM(cKeyid), ALLTRIM(cSubject),,) **Change Fore color of the node to the Red oNode.ForeColor = Rgb(255,0,0) *** Set Font to bold of a node oNode.Bold = .t. G.