Page 8 of 9
Re: Fwh 23.10 TGet another problem (UNSOLVED)
Posted: Mon Feb 19, 2024 9:20 am
by Horizon
nageswaragunupudi wrote:We sent you FiveH.lib and FiveHC.lib.
First please make a safe copy of your present FWH2310 folder
Then replace these two libs in your fwh\lib folder with the libs we sent you now.
Then, please test this program and provide your feedback.
Code: Select all | Expand
#include "fivewin.ch"
REQUEST HB_CODEPAGE_TRWIN
function Main()
local oDlg, oGet, oFont, nKey := 0
local cText := Space( 10 )
HB_CDPSELECT( "TRWIN" )
FW_SetUnicode( .f. )
SetGetColorFocus()
DEFINE FONT oFont NAME "Segoe UI" SIZE 0,-20 //CHARSET 162 // Use the charset that works for you
DEFINE DIALOG oDlg SIZE 450,300 PIXEL TRUEPIXEL FONT oFont ;
TITLE FWVERSION
@ 40, 40 GET oGet VAR cText SIZE 200,32 PIXEL OF oDlg ON CHANGE ;
( cText := oGet:cText, oDlg:Update() )
oGet:bKeyChar := { |k| nKey := k }
@ 40,300 SAY { || "Key: " + Str( nKey, 3 ) } SIZE 120,30 PIXEL OF oDlg UPDATE
@ 80, 40 SAY { || StrToHex( Trim( cText ), " " ) } SIZE 390,32 PIXEL OF oDlg UPDATE
@ 120, 40 SAY { || ListAsc( cText ) } SIZE 390,70 PIXEL OF oDlg UPDATE
@ 200, 40 SAY { || If( IsWindowUnicode( oGet:hWnd ), "UTF8", "ANSI" ) + ;
" GET" } SIZE 200,32 PIXEL OF oDlg UPDATE
@ 200,310 BUTTON "CHECK" SIZE 100,40 PIXEL OF oDlg ACTION ;
MsgInfo( IsWindowUnicode( oGet:hWnd ) )
odlg:brclicked := { || msginfo( IsWindowUnicode( oGet:hWnd ) ) }
ACTIVATE DIALOG oDlg CENTERED
cText := Trim( cText )
? cText, StrToHex( cText ), IsUtf8( cText )
return nil
static function ListAsc( cText )
local aList := {}
local c
cText := Trim( cText )
for each c in cText
AAdd( aList, ASC( c ) )
next
return FW_ArrayAsList( aList )
Without Windows Manifest.
http://www.objekt.com.tr/fwh_test/WithoutManifest.png
http://www.objekt.com.tr/fwh_test/WithoutManifest2.png
With Windows Manifest.
http://www.objekt.com.tr/fwh_test/WithManifest.png
http://www.objekt.com.tr/fwh_test/WithManifest2.png
Re: Fwh 23.10 TGet another problem (UNSOLVED)
Posted: Mon Feb 19, 2024 10:22 am
by nageswaragunupudi
We can not see the images
Please explain what is the problem
Re: Fwh 23.10 TGet another problem (UNSOLVED)
Posted: Mon Feb 19, 2024 10:43 am
by Horizon
Re: Fwh 23.10 TGet another problem (UNSOLVED)
Posted: Mon Feb 19, 2024 1:29 pm
by karinha
Hakan, what is the correct code in Türkiye?
Hakan, ¿cuál es el código correcto en Türkiye?
https://vivaclipper.wordpress.com/2014/ ... cdpselect/
Gracias, thanks.
Regards, saludos.
Re: Fwh 23.10 TGet another problem (UNSOLVED)
Posted: Mon Feb 19, 2024 1:31 pm
by Horizon
Re: Fwh 23.10 TGet another problem (UNSOLVED)
Posted: Mon Feb 19, 2024 1:35 pm
by nageswaragunupudi
For Turkish, Windows default ANSI codepage is 1254 and OEM codepage is 857.
Harbour TRWIN is cp1254.
But Hakkan's problem is not with codepages or utf8/ANSI/OEM related issues.
His problem is with a Bug in TGet, where TGet hWnd changes from ANSI to Unicode window.
Re: Fwh 23.10 TGet another problem (UNSOLVED)
Posted: Mon Feb 19, 2024 1:44 pm
by karinha
nageswaragunupudi wrote:For Turkish, Windows default ANSI codepage is 1254 and OEM codepage is 857.
Harbour TRWIN is cp1254.
But Hakkan's problem is not with codepages or utf8/ANSI/OEM related issues.
His problem is with a Bug in TGet, where TGet hWnd changes from ANSI to Unicode window.
I understand master Nages. Very complicated situation.
Entiendo maestro Nages. Situación muy complicada.
Gracias, thanks.
Regards, saludos.
Re: Fwh 23.10 TGet another problem (UNSOLVED)
Posted: Mon Feb 19, 2024 2:27 pm
by Otto
Dear Mr. Rao,
I know it's a bit late now. But wouldn't it be better to use the Edit Controls from the Win32 API instead of the TGet?
Best regards,
Otto
Re: Fwh 23.10 TGet another problem (UNSOLVED)
Posted: Tue Feb 20, 2024 7:48 am
by Horizon
Hi Mr. Rao,
Is there anything I can help with? Is there any feedback you expect from me?
Re: Fwh 23.10 TGet another problem (UNSOLVED)
Posted: Tue Feb 20, 2024 8:40 am
by Antonio Linares
Otto wrote:Dear Mr. Rao,
I know it's a bit late now. But wouldn't it be better to use the Edit Controls from the Win32 API instead of the TGet?
Best regards,
Otto
Dear Otto,
Class TGet uses a standard Edit control but (Windows) subclassed to have support for Harbour GET's pictures, behaviors, etc
Re: Fwh 23.10 TGet another problem (UNSOLVED)
Posted: Tue Feb 20, 2024 9:20 am
by Otto
Dear Antonio,
thank you. I thought similar to the RTF control (C:\FWH\source\classes\fget.prg).
@ 0,155 FORMAT GET oFGet1 VAR cTxt OF oWnd;
SIZE 360,40 PIXEL
Best regards,
Otto
Re: Fwh 23.10 TGet another problem (UNSOLVED)
Posted: Tue Feb 20, 2024 2:48 pm
by nageswaragunupudi
Horizon wrote:Hi Mr. Rao,
Is there anything I can help with? Is there any feedback you expect from me?
Will you please make sure you are using the libs we sent you recently?
Please check the sizes
Code: Select all | Expand
15-02-2024 22:51 4,955,648 fiveH.lib
15-02-2024 22:51 851,968 fiveHC.lib
Let us make sure that by an chance your are still linking with old libraries.
I tested here before sending them to you
Re: Fwh 23.10 TGet another problem (UNSOLVED)
Posted: Tue Feb 20, 2024 6:07 pm
by Horizon
nageswaragunupudi wrote:Horizon wrote:Hi Mr. Rao,
Is there anything I can help with? Is there any feedback you expect from me?
Will you please make sure you are using the libs we sent you recently?
Please check the sizes
Code: Select all | Expand
15-02-2024 22:51 4,955,648 fiveH.lib
15-02-2024 22:51 851,968 fiveHC.lib
Let us make sure that by an chance your are still linking with old libraries.
I tested here before sending them to you
Hi Mr. Rao,
I have checked the sizes. They are same. Just to be sure, I compiled and ran it again. The result is the same as before.
I would like to remind you that I am using Visual Studio 2022 32 bit and Harbour. I also use Windows manifest.
I can give any remote application's id and password if you want. You can compile it in my computer.
Re: Fwh 23.10 TGet another problem (UNSOLVED)
Posted: Wed Feb 21, 2024 3:23 am
by nageswaragunupudi
I would like to remind you that I am using Visual Studio 2022 32 bit and Harbour. I also use Windows manifest.
So, you are building with MSVC 32bits, not Borland C
The libs I sent you were for Borland C
Re: Fwh 23.10 TGet another problem (UNSOLVED)
Posted: Wed Feb 21, 2024 7:20 am
by Horizon
nageswaragunupudi wrote:I would like to remind you that I am using Visual Studio 2022 32 bit and Harbour. I also use Windows manifest.
So, you are building with MSVC 32bits, not Borland C
The libs I sent you were for Borland C
I am waiting libs for MSVC 32 bit. and Harbour