Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 To: tanvir ahmad
  Where is tanvir ahmad?
 rajnandgaon
 India
 tanvir ahmad
 Tags
Subject: RE: How to Implement UNICODE in VFP
Thread ID: 208809 Message ID: 209431 # Views: 22 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Windows Vista and VFP
Date: Sunday, December 28, 2008 6:16:14 PM         
   


> >
> >
> > Welcome
> >
> > The native VFP controls do not support entering or displaying unicode,then we use a microsoft textbox who is an activeX control for VFP.
> > load this control on your form (tools/options/controles/....check it in the list: microsoft forms 2.0 textbox (you can load also labels,checkbox,...who are unicode) and run my code below:
> >
> > 
> > *--Author Yousfi Benameur  El Bayadh Algeria
> > *-- Time Stamp:   12/22/08 07:12:05 PM
> > yform=createObject("asup")
> > yform.show
> > read events
> > return
> > 
> >     
> > DEFINE CLASS asup AS form
> > 	Height = 377
> > 	Width = 494
> > 	ShowWindow = 2
> > 	DoCreate = .T.
> > 	ShowTips = .T.
> > 	AutoCenter = .T.
> > 	BorderStyle = 3
> > 	Caption = "Unicode text"
> > 	MaxButton = .F.
> > 	Name = "Form1"
> > 
> > 	ADD OBJECT olecontrol1 AS olecontrol WITH ;
> > 	OLECLASS="Forms.Textbox.1" ,;
> > 		Top = 10, ;
> > 		Left = 17, ;
> > 		Height = 290, ;
> > 		Width = 446, ;
> > 		Anchor = 15, ;
> > 		Name = "Olecontrol1"
> > 
> > 	ADD OBJECT label1 AS label WITH ;
> > 		AutoSize = .F., ;
> > 		WordWrap = .T., ;
> > 		BackStyle = 0, ;
> > 		Caption = "Copy any text of any language (to clipboard) and Dbclick to paste the clipboard content in the textbox.", ;
> > 		Height = 32, ;
> > 		Left = 29, ;
> > 		Top = 307, ;
> > 		Width = 372, ;
> > 		ForeColor = RGB(255,0,0), ;
> > 		Name = "Label1"
> > 
> > 	ADD OBJECT label2 AS label WITH ;
> > 		AutoSize = .T., ;
> > 		BackStyle = 1, ;
> > 		Caption = "CTRL+C=copy,CTRL+V=paste,CTRL+X=cut,CTRL+A=select All...", ;
> > 		Height = 17, ;
> > 		Left = 31, ;
> > 		Top = 348, ;
> > 		Width = 355, ;
> > 		ForeColor = RGB(0,0,255), ;
> > 		Name = "Label2"
> > 
> > 	ADD OBJECT combo1 AS combobox WITH ;
> > 		Height = 24, ;
> > 		Left = 408, ;
> > 		ToolTipText = "Alignment", ;
> > 		Top = 324, ;
> > 		Width = 64, ;
> > 		Name = "Combo1"
> > 
> > 
> > 	PROCEDURE olecontrol1.DblClick
> > 		*** Événement de contrôle ActiveX  ***
> > 		LPARAMETERS cancel
> > 		this.paste
> > 	ENDPROC
> > 
> > 
> > 	PROCEDURE combo1.Init
> > 		this.additem("1")
> > 		this.additem("2")
> > 		this.additem("3")
> > 		this.style=2
> > 		this.value=1
> > 		this.listindex=3
> > 	ENDPROC
> > 
> > 	PROCEDURE combo1.Click
> > 		this.parent.olecontrol1.Textalign=this.value
> > 		this.parent.olecontrol1.refresh
> > 	ENDPROC
> >     
> > PROCEDURE DESTROY
> >     clea events
> >     ENDPROC
> >    
> > 
> > ENDDEFINE
> > *

> > I test it with Arabic language and it works fine.
> > Important: you can enter directly with keyboard in this textbox any text in any language if this is installed on your PC
> >
> > NB: I have french and arabic installed in my PC (see windows configuration pannel for this).
> > A photo of this
> >
> >
> > another sources you can studay:
> > 1-Using Asian Characters in a Visual FoxPro Application
> > http://stevenblack.com/INTLUsingAsianCharacters.html
> >
> > 2-copy unicode text to clipboard
> > http://www.berezniker.com/category/topic/unicode
> >
> > 3-http://dbconvert.com/convert-foxpro-to-mysql-sync.php
> > (Full UNICODE architecture support )
> >
> > regards
>
> Please tell me also how to implement unicode in VFP report also


Update: see my answer in this question in Message ID: 209370
regards

ENTIRE THREAD

How to Implement UNICODE in VFP Posted by pravin pawar @ 12/22/2008 7:43:51 AM
RE: How to Implement UNICODE in VFP Posted by Borislav Borissov @ 12/22/2008 8:30:07 AM
RE: How to Implement UNICODE in VFP Posted by Yousfi Benameur @ 12/22/2008 7:55:38 PM
RE: How to Implement UNICODE in VFP Posted by tanvir ahmad @ 12/23/2008 7:24:19 AM
RE: How to Implement UNICODE in VFP Posted by tanvir ahmad @ 12/24/2008 9:20:56 AM
RE: How to Implement UNICODE in VFP Posted by Yousfi Benameur @ 12/24/2008 11:45:13 AM
RE: How to Implement UNICODE in VFP Posted by Yousfi Benameur @ 12/28/2008 6:16:14 PM