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

  • Thread starter Thread starter hitupalex
  • Start date Start date
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?
 
On Mon, 29 Dec 2008 13:34:05 -0800 (PST), (e-mail address removed) wrote:

The control is supported: http://support.microsoft.com/kb/191222

It worked for me after I set an appropriate font:
myTreeview.Font.Name = "Arial Unicode MS"

BTW, this forum is for the Microsoft Access database program.

-Tom.
Microsoft Access MVP
 
Thanks for your reply Tom. Unfortunately changing the font only
changed the appearance but did not get the letters appearing.
 
On Tue, 30 Dec 2008 12:39:35 -0800 (PST), (e-mail address removed) 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
 
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
 
Back
Top