PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Treeview translate disable creation of nodes
Treeview translate disable creation of nodes
Iniciado por PETR_K, 08,may. 2015 10:33 - 2 respuestas
Miembro registrado
71 mensajes
Publicado el 08,mayo 2015 - 10:33
Hi,

I translated names of nodes in my TreeView and it happened that TreeView does not create as it should. Please see a pictures.

Code of TreeView without translation
TreeAdd(TREE_MainTree, "Číselníky", tvDefault, tvDefault, "Index", tvLast)
TreeAdd(TREE_MainTree, "Finance", tvDefault, tvDefault, "Finance", tvLast)
TreeAdd(TREE_MainTree, "Výroba", tvDefault, tvDefault, "Production", tvLast)



Code of TreeView with translation (unfortunatelly, code below is not displaying correctly, there is missing that "translation flag" after translated word, I manually put there star symbol "*" instead of flag to indicate what I translated)
TreeAdd(TREE_MainTree, ""Číselníky"*", tvDefault, tvDefault, "Index", tvLast)
TreeAdd(TREE_MainTree, ""Finance"*", tvDefault, tvDefault, "Finance", tvLast)
TreeAdd(TREE_MainTree, ""Výroba"*", tvDefault, tvDefault, "Production", tvLast)


I tried to insert pictures but it still says "Technical error"...
I will try it later.

Point is that TreeView with translation is not created, it just shows one node thumbnail, no text, no other nodes, no connecting lines, just nothing.


Petr
Publicado el 08,mayo 2015 - 14:40
Hi Petr,

is your content (translated string) in an exoctic (ie NON ANSI) charset?
If yes, is your treeview control set as unicode?

Best regards


--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Already there: WXShowroom.com, WXReplication (open source)
Coming soon: WXEDM (open source)
More information on http://www.fabriceharari.com


On 5/8/2015 2:33 AM, PETR_K wrote:
Hi,

I translated names of nodes in my TreeView and it happened that TreeView
does not create as it should. Please see a pictures.

Code of TreeView without translation
TreeAdd(TREE_MainTree, "Číselníky", tvDefault, tvDefault, "Index", tvLast)
TreeAdd(TREE_MainTree, "Finance", tvDefault, tvDefault, "Finance", tvLast)
TreeAdd(TREE_MainTree, "Výroba", tvDefault, tvDefault, "Production",
tvLast)



Code of TreeView with translation (unfortunatelly, code below is not
displaying correctly, there is missing that "translation flag" after
translated word, I manually put there star symbol "*" instead of flag to
indicate what I translated)
TreeAdd(TREE_MainTree, ""Číselníky"*", tvDefault, tvDefault, "Index",
tvLast)
TreeAdd(TREE_MainTree, ""Finance"*", tvDefault, tvDefault, "Finance",
tvLast)
TreeAdd(TREE_MainTree, ""Výroba"*", tvDefault, tvDefault, "Production",
tvLast)


I tried to insert pictures but it still says "Technical error"...
I will try it later.

Point is that TreeView with translation is not created, it just shows
one node thumbnail, no text, no other nodes, no connecting lines, just
nothing.


Petr
Miembro registrado
71 mensajes
Publicado el 08,mayo 2015 - 18:49
Hi Fabrice,

thank you for your reaction.

1st project language is Czech (it is words you can see in my sample code) and second language is English. My Project description Language is UTF8. I did not find a way how to set TreeView control as Unicode, as far as I noticed it is possible to setup language set only in Query.

I could understand if it would work with english node names and not with czech node names but it works perfectly with Czech node names and stops working after I translate it.


Regards

Petr