Hi,
Often times in programs you see tree controls where the text for each node looks like a hyperlink. Can I duplicate this with the UltraWinTree control?
Thanks,
Jeff
You could do this using an UltraFormattedTextEditor control. Place one on the form,with the tree, set it's style to URL and, and then assign the appropriate Override.EditorControl to the UltraFormattedTextEditor.
Hi Mike,
Is this what you mean?
UltraFormattedTextEditor treeEditor = new UltraFormattedTextEditor();
treeNode.Override.EditorControl = treeEditor;
with that code nothing appears. If I add the treeEditor to the controls collection of my tree (utrProjects), then the textbox just appears in the upper left of the tree.
Also I don't see any hyperlink style. The styles seem to be Office2k, 2007, 2003, VS2005, etc.
Okay, it's not Style, the property I was talking about is TreatValueAs.
Also note that you can simply set UltraTree.Override.HotTracking to DefaultableBoolean.True to make the nodes appear as hyperlinks. You might also want to set the Cursor property of the associated appearance to 'Hand'.
Example:this.ultraTree1.Override.HotTracking = DefaultableBoolean.True;this.ultraTree1.Override.HotTrackingNodeAppearance.Cursor = Cursors.Hand;