Alreday sent ...
Daniel Garcia-Gil wrote:Rimantas
the lithuanian prompts is not showed
send me the prg too
what text editor are you using?
Antonio Linares wrote:Are the same prompts are fine with a standard TFolder (SysTabControl32) ?
We use DrawText() to paint the promts. As those are in unicode I think that you could try to call DrawTextW() instead of DrawTextA(). By default (non unicode) DrawText() gets translated into DrawTextA().
#include "FiveWin.ch"
function Main()
local oDlg
DEFINE DIALOG oDlg
ACTIVATE DIALOG oDlg CENTERED ;
ON PAINT DrawTextW( hDC, Unicode_Text, { 10, 10, 30, 100 } )
return nil
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
HB_FUNC( DRAWTEXTW )
{
RECT rct;
rct.top = hb_parvni( 3, 1 );
rct.left = hb_parvni( 3, 2 );
rct.bottom = hb_parvni( 3, 3 );
rct.right = hb_parvni( 3, 4 );
DrawTextW( ( HDC ) hb_parnl( 1 ), ( char * ) hb_parc( 2 ), hb_parclen( 2 ), &rct, DT_LEFT );
}
#pragma ENDDUMP
Antonio Linares wrote:Rimantas,
Please try this example using some unicode text:
- Code: Select all Expand view
#include "FiveWin.ch"
function Main()
local oDlg
DEFINE DIALOG oDlg
ACTIVATE DIALOG oDlg CENTERED ;
ON PAINT DrawTextW( hDC, Unicode_Text, { 10, 10, 30, 100 } )
return nil
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
HB_FUNC( DRAWTEXTW )
#pragma ENDDUMP
#include "FiveWin.ch"
function Main()
local oDlg
DEFINE DIALOG oDlg TITLE "Bandymėlis ... Ąčęėįšųūž "
@ 10, 30 SAY "Linksmų Kalėdų ! Ąčęėįšųūž " PIXEL OF oDlg
ACTIVATE DIALOG oDlg CENTERED
return nil
Antonio Linares wrote:If the example is properly shown with standard DrawText() then it means that you are not displaying unicode.
Class TFolderEx() is using standard DrawText()
Antonio Linares wrote:Rimantas,
Does it look wrong in TFolderEx ? Or you simply get nothing ?
#include "FiveWin.ch"
function main()
local oWnd, oFld
DEFINE DIALOG oWnd TITLE "TFolderex - DIALOG -"
@ 3, 3 FOLDEREX oFld PIXEL ADJUST PROMPT "&OS", "&Žaidimai", "&Movies", "&Ūsai"
@ 1,3 SAY "UNDER CONSTRUCTION" OF oFld:aDialogs[ 1 ] TRANSPARENT
@ 40,50 SAY "Linksmų Kalėdų! Lithuanian chars - ąčęėįšųūž - " OF oFld:aDialogs[ 1 ] PIXEL TRANSPARENT
ACTIVATE DIALOG oWnd
RETURN NIL
Antonio Linares wrote:Rimantas,
Here it looks fine:
We need to find a way to reproduce what you get there...
Antonio Linares wrote:Rimantas,
Here it looks fine:
We need to find a way to reproduce what you get there...
@ 40,50 SAY "Linksmų Kalėdų! Lithuanian chars - ąčęėįšųūž - " OF oFld:aDialogs[ 1 ] PIXEL TRANSPARENT
#include "FiveWin.ch"
function main()
local oWnd
local oFld
local oFont
DEFINE FONT oFont NAME "Times New Roman Baltic"
DEFINE DIALOG oWnd TITLE "TFolderex - DIALOG -" FONT oFont
@ 3, 3 FOLDEREX oFld PIXEL ADJUST PROMPT "Žaidimai", "Lietuviškai", "Ąčęėįšųūž"
@ 1,3 SAY "UNDER CONSTRUCTION" OF oFld:aDialogs[ 1 ] TRANSPARENT
@ 40,50 SAY "Linksmų Kalėdų !" OF oFld:aDialogs[ 1 ] PIXEL TRANSPARENT
ACTIVATE DIALOG oWnd
oFont:End()
RETURN NIL
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 89 guests