Group:  Microsoft Access » microsoft.public.access.forms
Thread: Tree control (MSComctlLib.TreeCtrl.2) support for accent (diacritical) marks

Geek News

Tree control (MSComctlLib.TreeCtrl.2) support for accent (diacritical) marks
hitupalex[ at ]gmail.com 12/29/2008 9:34:05 PM
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?
Re: Tree control (MSComctlLib.TreeCtrl.2) support for accent (diacritical) marks
Tom van Stiphout <tom7744.no.spam[ at ]cox.net> 12/30/2008 3:58:16 AM
On Mon, 29 Dec 2008 13:34:05 -0800 (PST), hitupalex[ at ]gmail.com 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


[Quoted Text]
>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?
Re: Tree control (MSComctlLib.TreeCtrl.2) support for accent (diacritical) marks
hitupalex[ at ]gmail.com 12/30/2008 8:39:35 PM
Thanks for your reply Tom. Unfortunately changing the font only
changed the appearance but did not get the letters appearing.

On Dec 29, 10:58 pm, Tom van Stiphout <tom7744.no.s...[ at ]cox.net> wrote:
[Quoted Text]
> On Mon, 29 Dec 2008 13:34:05 -0800 (PST), hitupa...[ at ]gmail.com wrote:
>
> Thecontrolis 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
>
> >I am using thiscontrolin a VFP (visual foxpro) form (don't ask...).
> >The data I pull from the database to populate this thetreeshow up
> >but is missing any letters that may have anaccentmark over them. Any
> >ideas if thetreecontrolsupports those characters in the first place?
Re: Tree control (MSComctlLib.TreeCtrl.2) support for accent (diacritical) marks
Tom van Stiphout <tom7744.no.spam[ at ]cox.net> 12/31/2008 2:03:10 AM
On Tue, 30 Dec 2008 12:39:35 -0800 (PST), hitupalex[ at ]gmail.com 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


[Quoted Text]
>Thanks for your reply Tom. Unfortunately changing the font only
>changed the appearance but did not get the letters appearing.
>
>On Dec 29, 10:58 pm, Tom van Stiphout <tom7744.no.s...[ at ]cox.net> wrote:
>> On Mon, 29 Dec 2008 13:34:05 -0800 (PST), hitupa...[ at ]gmail.com wrote:
>>
>> Thecontrolis 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
>>
>> >I am using thiscontrolin a VFP (visual foxpro) form (don't ask...).
>> >The data I pull from the database to populate this thetreeshow up
>> >but is missing any letters that may have anaccentmark over them. Any
>> >ideas if thetreecontrolsupports those characters in the first place?
Re: Tree control (MSComctlLib.TreeCtrl.2) support for accent (diacritical) marks
hitupalex[ at ]gmail.com 12/31/2008 8:32:39 PM
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

On Dec 30, 9:03 pm, Tom van Stiphout <tom7744.no.s...[ at ]cox.net> wrote:
[Quoted Text]
> On Tue, 30 Dec 2008 12:39:35 -0800 (PST), hitupa...[ at ]gmail.com wrote:
>
> This is my entire code, and it does show an e withaccentas 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
>
> >Thanks for your reply Tom. Unfortunately changing the font only
> >changed the appearance but did not get the letters appearing.
>
> >On Dec 29, 10:58 pm, Tom van Stiphout <tom7744.no.s...[ at ]cox.net> wrote:
> >> On Mon, 29 Dec 2008 13:34:05 -0800 (PST), hitupa...[ at ]gmail.com wrote:
>
> >> Thecontrolis 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
>
> >> >I am using thiscontrolin a VFP (visual foxpro) form (don't ask...).
> >> >The data I pull from the database to populate this thetreeshow up
> >> >but is missing any letters that may have anaccentmark over them. Any
> >> >ideas if thetreecontrolsupports those characters in the first place?

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net