FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour tcbrowse tccolumn Unicode Characters
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
tcbrowse tccolumn Unicode Characters
Posted: Wed Dec 16, 2015 11:16 AM
Hi to all,
Please I need Help
The second column is not displayed correctly
If I Double Click,I can see the real content of aa_chn->des_chn field
Any (Urgent please) Hints?


Marco
Here you can find dbf table

http://www.marcoboschi.it/public/aa_chn.dbf

Code (fw): Select all Collapse
#include "fivewin.ch"
#include "tcbrowse.ch"

FUNCTION MAIN()
LOCAL oDlg

LOCAL oBrw
LOCAL oCol

FW_SetUnicode( .T. )

USE aa_chn

DEFINE DIALOG oDlg FROM 10 , 10 TO 300 , 800 PIXEL

   @ 1 , 1  BROWSE oBrw OF oDlg SIZE 300 , 100

  oCol := TcColumn():New( "Code"        , { | | field->codice } ,  ,  , , ,  , , , , , , ,  )
  oBrw:addcolumn( oCol )

  oCol := TcColumn():New( "Description" , { | | field->des_chn } ,  ,  , , ,  , , , , , , ,  )
  oBrw:addcolumn( oCol )

  oBrw:blDblClick:= {|| MsgInfo( field->des_chn ) }

ACTIVATE DIALOG oDlg CENTER

RETURN NIL
Marco Boschi
info@marcoboschi.it
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: tcbrowse tccolumn Unicode Characters
Posted: Wed Dec 16, 2015 04:26 PM

:?:

Marco Boschi
info@marcoboschi.it
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: tcbrowse tccolumn Unicode Characters
Posted: Wed Dec 16, 2015 06:11 PM
Marco, try

In line 150 module tcfuncs.c,

Code (fw): Select all Collapse
          DrawText( hDC, cData, nLen, &rct, nAlign | DT_VCENTER | 
                  DT_SINGLELINE | DT_NOPREFIX ) ;


With

Code (fw): Select all Collapse
          DrawTextAW( hDC, cData, nLen, &rct, nAlign | DT_VCENTER | 
                  DT_SINGLELINE | DT_NOPREFIX ) ;


Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: tcbrowse tccolumn Unicode Characters
Posted: Fri Dec 18, 2015 09:23 AM

Cristobal,
I have Jiust read your answer.
I've found tcbfuncs.c file in folder \fwh_new\source\function
Do I have to compile it now?
Marco

Marco Boschi
info@marcoboschi.it
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: tcbrowse tccolumn Unicode Characters
Posted: Fri Dec 18, 2015 02:46 PM
MarcoBoschi wrote:Cristobal,
I have Jiust read your answer.
I've found tcbfuncs.c file in folder \fwh_new\source\function
Do I have to compile it now?
Marco


Yes, and add to project
15.11 FWH will included
Regards
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: tcbrowse tccolumn Unicode Characters
Posted: Fri Dec 18, 2015 05:04 PM

Cristobal,
I've just download from site FWHX 15.10.
When it will available the 15.11?

Many many Thanks

Marco

Marco Boschi
info@marcoboschi.it
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: tcbrowse tccolumn Unicode Characters
Posted: Sat Dec 19, 2015 07:44 AM

It is not available in 15.10. You need to make the correction suggested by Mr Cristobal.
The change is already incorporated for 15.11 and will be available when released.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: tcbrowse tccolumn Unicode Characters
Posted: Sat Dec 19, 2015 08:41 AM

Unfortunately I do not know how to do...
Can you show an example how to do it?
Marco

Marco Boschi
info@marcoboschi.it
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: tcbrowse tccolumn Unicode Characters
Posted: Sat Dec 19, 2015 09:17 AM

Ok SOLVED!
Many Thanks!

Marco Boschi
info@marcoboschi.it

Continue the discussion