|Topic was automatically imported from the old Question2Answer platform.
Hey! I’m using a tree node for a quest list in my game, but I’ve run into an issue. When I add the description item it gets cut off if it’s too long. I’ve been looking some kind of setting that I could maybe wrap my text if it’s too long, but I’ve found nothing. Help!
A TreeItem control does not have wrap affect same for any Treeitem control in Windows operating system. You have two options and they are the following:
Use tooltip windows to display the long item text by hovering your mouse cursor over the text item.
Resize the Treeitem control to show the long text item.
The latter is not recommended because you may have other controls (e.g. buttons)
that may end up scrolling off the screen.
On systems such as Windows operating systems a Treeitem control does not allow
wrap affect because if it did, it would cause a huge performance hit when control
needs to rearrange all items so that it can display the long text, especially when
the Treeitem control contains thousands of items.
My advice, use tooltip windows or shorten the text.
Thanks for giving an answer, I guess I’ll just use tooltips!
FoggyDude | 2022-09-02 07:45