Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does treeview support Hebrew?
Message
From
23/06/2009 19:11:45
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/06/2009 14:11:43
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01407428
Message ID:
01407918
Views:
43
>I have treeview which base on cursor.
>One field of the cursor is for the treeview text and I fill this field with hebrew words.
>When I run the form I see gibberish on the treeview nodes.
>
>Notes:
>1. when I fill with english I dont have any problem.
>2. I dont have problem to use hebrew in other vfp controls (caption, listbox etc).

Treeview is not a VFP control, it's an ActiveX supplied with Windowses (all of them, since probably 3.1 or so, but I guess it really started getting packaged like this in W95). To control the codepage of what it displays, you need to set the treeview.font.codepage or some such property. You can't access this property directly - PEM window shows that .Font is an object, won't drill in; the TreeCtrl Properties dialog doesn't have any control to access this property, but there's a way.

You need to do it in code. Just say, maybe in the .init of the treeview, this.font.FontCharset=nnnn (whichever magic number gives the Hebrew set - the info must be there somewhere in the depths of M$DN or MSKB or whatever they call it this week), and it should display fine... except there may be a problem with the RTL directionality, not sure if it's supported as a property. But it should be - you see proper RTL text in your Explorer windows when it displays directories, right (i.e. left)? That's the same control, AFAIK, so it maybe has the instruction to display right to left somewhere in the font itself.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform