Special character

Special character

Postby Ugo » Thu Mar 08, 2007 2:21 pm

I must use special characters in fields get, mget of fwh and in fields memo or character in the dbf.
During the insertion it is ok, changes as soon as I exit from the field:
Image
Is possible to solve?
Thanks in advance.
Ciao, best regards,
Ugo
User avatar
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Re: Special character

Postby Enrico Maria Giordano » Thu Mar 08, 2007 2:56 pm

Please build a simple PRG showing the problem.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby James Bott » Thu Mar 08, 2007 3:36 pm

Ugo,

I am not having that problem here.

FWH 2.7 Aug 2006 build/xHarbour

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Special character

Postby Ugo » Fri Mar 09, 2007 9:39 am

EnricoMaria wrote:Please build a simple PRG showing the problem.

Enrico,
this is the test:
Code: Select all  Expand view  RUN
FUNCTION Main()
/* RC File:
1 24 "themed.manifest"

SPECIALCHAR DIALOG 51, 72, 254, 85
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
CAPTION "Special Char"
FONT 8, "MS Sans Serif"
{
EDITTEXT 101, 13, 10, 230, 45, ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN | WS_BORDER | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "Char Map", 102, 41, 67, 50, 14
PUSHBUTTON "Paste", 103, 100, 67, 50, 14
PUSHBUTTON "End", 104, 162, 67, 50, 14
}*/
   LOCAL oDlg, oGet, cNote := Space( 100 ), oClp, oBt1, oBt2, oBt3, oFont

   DEFINE FONT oFont NAME "Arial" SIZE 0, - 11
   DEFINE DIALOG oDlg RESOURCE "SpecialChar" FONT oFont
   DEFINE CLIPBOARD oClp OF oDlg
   REDEFINE GET oGet VAR cNote ID 101 OF oDlg MEMO
   REDEFINE BUTTON oBt1 ID 102 ACTION WinExec( "CHARMAP.EXE" )
   REDEFINE BUTTON oBt2 ID 103 ACTION ( oGet:Paste( oCLp:GetText() ), oDlg:Refresh() )
   REDEFINE BUTTON oBt3 ID 104 ACTION OdLG:END()
   Activate Dialog oDlg
   oClp:END()

   Return Nil

You can reproduce the problem with click on "Char Map" Button, select in the Arial Font the U+015E char and click on copy, next right click on get control and select paste, you see the char, if you exit focus, the char change! :(

In the fwh exe do not work the paste button. :(

If you remove from rc the line:
Code: Select all  Expand view  RUN
1 24 "themed.manifest"

do not work!

Can you confirm?
Is possible to solve?
Ciao, best regards,
Ugo
User avatar
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Postby Ugo » Fri Mar 09, 2007 10:24 am

James Bott wrote:I am not having that problem here.

FWH 2.7 Aug 2006 build/xHarbour

James,
I compile with FWH 7.01 and xHrb 0.99.71.
Do not work with my previous versione May 2006

Have you tested my sample?
Ciao, best regards,
Ugo
User avatar
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Postby Antonio Linares » Fri Mar 09, 2007 10:42 am

Ugo,

Your sample is working fine here with FWH 7.01, with and without themes
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42103
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Ugo » Fri Mar 09, 2007 11:18 am

Antonio Linares wrote:Your sample is working fine here with FWH 7.01, with and without themes

Antonio,
on my computer is different!!!
see the enclosed pictures (with themes):
1) Image Image

Is not the same character!!! :shock:

Also without themes: Image

Is not the same character!!! :shock:
Ciao, best regards,
Ugo
User avatar
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Postby Antonio Linares » Fri Mar 09, 2007 11:32 am

Ugo,

Please download the EXE from here and test it:

http://www.uploading.com/files/A8FHEWOT/test.zip.html
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42103
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Ugo » Fri Mar 09, 2007 12:29 pm

Antonio Linares wrote:Please download the EXE from here and test it


Antonio,

WOW, your test work fine :D

The problem is my library! :cry:

Many thanks for the help!!!
Ciao, best regards,
Ugo
User avatar
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Postby Ugo » Fri Mar 09, 2007 1:55 pm

Antonio,

the problem is present in GET without MEMO!

Can you confirm?
Ciao, best regards,
Ugo
User avatar
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Postby Ugo » Fri Mar 09, 2007 2:15 pm

Ugo wrote:the problem is present in GET without MEMO!

Antonio,

I found another problem, the special character is visible but not usable!
Test this:
Code: Select all  Expand view  RUN
   LOCAL oDlg, oGet, cNote := "", oClp, oBt1, oBt2, oBt3, oFont, oIni

   DEFINE FONT oFont NAME "Arial" SIZE 0, - 11
   DEFINE DIALOG oDlg RESOURCE "SpecialChar" FONT oFont
   DEFINE CLIPBOARD oClp OF oDlg

   INI oIni File "MemoTest.ini"
      GET cNote SECTION "Test" ENTRY "Memo" OF oIni DEFAULT Space( 100 )

      REDEFINE GET oGet VAR cNote ID 101 OF oDlg MEMO
      REDEFINE BUTTON oBt1 ID 102 ACTION WinExec( "CHARMAP.EXE" )
      REDEFINE BUTTON oBt2 ID 103 ACTION ( oGet:Paste( oCLp:GetText() ), oDlg:Refresh() )
      REDEFINE BUTTON oBt3 ID 104 ACTION OdLG:END()
      Activate Dialog oDlg
      oClp:END()

      SET SECTION "Test" ENTRY "Memo"  TO cNote OF oIni
   ENDINI
   Return Nil


Insert the special character and click on "End" button.
Now run the program and you will see the "S" not the "Ş".

Can you confirm?

Is possible to save the special character into the DBF and INI files?
Ciao, best regards,
Ugo
User avatar
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Postby Ugo » Mon Mar 12, 2007 5:49 pm

Ugo wrote:Is possible to save the special character into the DBF and INI files?

any suggestions?
Ciao, best regards,
Ugo
User avatar
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Postby Enrico Maria Giordano » Mon Mar 12, 2007 5:59 pm

Do you have any problems saving special characters to DBF or INI files? If yes, can I see a little sample?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Ugo » Wed Mar 14, 2007 10:33 am

EnricoMaria wrote:Do you have any problems saving special characters to DBF or INI files?
Enrico,
Yes!
can I see a little sample?
Yes:
Code: Select all  Expand view  RUN
FUNCTION Main()
/* RC File:
1 24 "themed.manifest"

SPECIALCHAR DIALOG 51, 72, 203, 112
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
CAPTION "Special Char"
FONT 8, "MS Sans Serif"
{
EDITTEXT 101, 13, 10, 180, 45, ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN | WS_BORDER | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "Char Map", 102, 16, 90, 50, 14
PUSHBUTTON "Paste", 103, 75, 90, 50, 14
PUSHBUTTON "End", 104, 137, 90, 50, 14
EDITTEXT 105, 13, 68, 83, 12
}*/
   LOCAL oDlg, oGet, cNote := "", cNot1 := Space(20), oClp, oBt1, oBt2, oBt3, oFont, oIni

   DEFINE FONT oFont NAME "Arial" SIZE 0, - 11
   DEFINE DIALOG oDlg RESOURCE "SpecialChar" FONT oFont
   DEFINE CLIPBOARD oClp OF oDlg

   INI oIni File "MemoTest.ini"
      GET cNote SECTION "Test" ENTRY "Memo" OF oIni DEFAULT Space( 100 )
      GET cNot1 SECTION "Test" ENTRY "Memo1" OF oIni DEFAULT Space( 20 )

      REDEFINE GET oGet VAR cNote ID 101 OF oDlg MEMO
      REDEFINE GET oGet VAR cNot1 ID 105 OF oDlg
      REDEFINE BUTTON oBt1 ID 102 ACTION WinExec( "CHARMAP.EXE" )
      REDEFINE BUTTON oBt2 ID 103 ACTION ( oGet:Paste( oCLp:GetText() ), oDlg:Refresh() )
      REDEFINE BUTTON oBt3 ID 104 ACTION OdLG:END()
      Activate Dialog oDlg
      oClp:END()

      SET SECTION "Test" ENTRY "Memo"  TO cNote OF oIni
      SET SECTION "Test" ENTRY "Memo1"  TO cNot1 OF oIni
   ENDINI
   Return Nil
You can reproduce the problem with click on "Char Map" Button, it selects in the Arial Font the U+015E char and click on copy.
Now paste (with right click and paste) into memo-get and into normal get.
When you exit from the normal get change the char!
Now exit and reopen the program, the char is not the same in the memo-get, in INI file is saved the standard char.
In dbf file is the same.
Can you confirm?

[SORRY FOR MY BAD ENGLISH!!! :( ]
Ciao, best regards,
Ugo
User avatar
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Postby Enrico Maria Giordano » Wed Mar 14, 2007 10:44 am

As I said you in private email, I can't see the pasted special character here. It immediately becomes "S".

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 95 guests