Forum > Translations

TreeView Nodes text translation

(1/1)

jcmontherock:
Hello,

I have a Treeview control in my application. When I try to change language and translate nodes text, there are not translated. Do we have to rebuild all TreeView to have text translated ? With others controls we do not have this problem. All node text to be translated are in po file. See example.

Alextp:
I guess this is not supported and must not be supported: like e.g. for TMemo and TListbox lines.

jcmontherock:
I finally find how to do: at TV creation I save the node index and the address of the resource string in a record and restore it at language change. You can even save the the pointer in the TV Node.Data.
Hoping it will be helpful for somebody.

Navigation

[0] Message Index

Go to full version