Hi Team,
I am using UltraWinTree and facing following issue.
I am using UltraFormattedTextEditor in the UltraWinTree as I need to format the tree node text. But while editing the tree node, the text is getting truncated at the end. Please refer below screenshot. The font I need to use is Tahoma with font size 10.
Can you please help me in this.
Thanks
- Kaustubh
Hi Ivan,
Thanks for your quick response.
I need to use the UltraFormattedTextEditor because it is required to format the node text. E.g. I am searching a string which needs to be highlighted in all the nodes if present. Refer following screenshot. From the documentation what I learnt is such formatting is not possible without formatted text editor.
Regarding the properties I have not override any properties other than editorcontrol. Following are the screenshots of my tree property window.
Please let me know if more information is required.
Thanks!
-Kaustubh Wadi
Hello Kaustubh,
Could you let me know if you are overriding the setting of the ultratree? And if you do, could you share which properties are you overriding?
The reason why I am asking is that I have tested this on a small sample and when I enter a text that is too long, on my side a scrollbar appear automatically, without having to change any properties and using only the default ones.
Regarding using the UltraFormattedTextEditor, if you need it only for applying the “Tahoma” font style and font size of 10, it shouldn’t be needed, since you can overrdide the NodeAppearance property and set the font style and font size there. It could be achieved with the following code:
var ovr = this.ultraTree1.Override;
ovr.NodeAppearance.FontData.Name = "Tahoma";
ovr.NodeAppearance.FontData.SizeInPoints = 10;
I am attaching the sample that I have tested with as well as an image that demonstrates the behavior on my side:
Please test the sample on your side and let me know if you have any questions or concerns.
Regards, Ivan Kitanov
TreeLongNodeText.zip