Tree control (MSComctlLib.TreeCtrl.2) support for accent(diacritical) marks

H

hitupalex

I am using this control in a VFP (visual foxpro) form (don't ask...).
The data I pull from the database to populate this the tree show up
but is missing any letters that may have an accent mark over them. Any
ideas if the tree control supports those characters in the first place?
 
H

hitupalex

Thanks for your reply Tom. Unfortunately changing the font only
changed the appearance but did not get the letters appearing.
 
T

Tom van Stiphout

On Tue, 30 Dec 2008 12:39:35 -0800 (PST), [email protected] wrote:

This is my entire code, and it does show an e with accent as the last
char:

Dim newNode As MSComctlLib.Node
Dim tv As MSComctlLib.TreeView

Set tv = Me.TreeView2.Object
tv.Font.Name = "Arial Unicode MS"
Set newNode = tv.Nodes.Add(, , "One", "This is the root" &
Chr$(233))

-Tom.
Microsoft Access MVP
 
H

hitupalex

I got it to working. I had to convert the string (variable) to utf-8
format and return that string to the node:

STRCONV(m.cCaption, 9) -->"In VFP, STRCONV: Converts character
expressions between single-byte, double-byte, UNICODE, and locale-
specific representations."

Your example definitely helped me out.

Thanks and happy New Year!

Alex
 
Top