Estimado Joao,
the relevant code at line 3552. The current code is:
SetWindowText( ::hWnd, Replicate( If( IsAppThemed(), Chr( 149 ), "*" ),;
Len( Trim( ::oGet:buffer ) ) ) )
Simply modify that line :idea:
Estimado Joao,
the relevant code at line 3552. The current code is:
SetWindowText( ::hWnd, Replicate( If( IsAppThemed(), Chr( 149 ), "*" ),;
Len( Trim( ::oGet:buffer ) ) ) )
Simply modify that line :idea:
Estimado maestro, cuando digo que no funciona, es porque ya lo he probado.
-> Error E2209 TGET.prg 4992: Unable TO open include file 'fwh.h'
Si elimino la llamada a 'fwh.h', la compilación se completa, pero el asterisco (*) no cambia y sigue apareciendo como un cÃrculo sólido en la máscara de la contraseña. PodrÃa ser algo de Windows 11.
METHOD DispText() CLASS TGet
if ::lPassword .AND. ::oGet:Type == "C"
if ::IsWideChar
IF Empty( ::GetText() )
// firt time in get from resource
// del:WenSheng: SetWindowText( ::hWnd, Trim( Eval( ::bSetGet ) ) )
::SetText( ::GetText() ) // add:WenSheng:2021.09.22:�����^�R���A�R����̫�@�X��ơA�|���s��ܸ����e�ױK�X�r��
ELSE
// ::SetText( ::GetText() ) // del:WenSheng: ��n���l�X�A�ˡA�o�ˤ~�|���`!!
SetWindowText( ::hWnd, Trim( Eval( ::bSetGet ) ) ) // add:WenSheng
ENDIF
ELSE
SetWindowText( ::hWnd, Replicate( If( IsAppThemed(), Chr( 42 ), "*" ),; // NO FUNCIONA.
Len( Trim( ::oGet:buffer ) ) ) )
ENDIF
ELSE
/*
if ::lLimitChars
// ::SetText( Trim( ::GetText() ) )
::SetText( Trim( ::oGet:buffer ) ) // fix 2016-07-07
*/
if ::IsWideChar()
::SetText( If( Empty( ::oGet:buffer ), "", ::oGet:buffer ) )
ELSE
if ::nCase == CASE_PROPER
::oGet:buffer := FW_ProperCase( ::oGet:buffer )
ENDIF
SetWindowText( ::hWnd, If( ! Empty( ::cCueText );
.AND. Empty( ::oGet:VarGet() );
.AND. GetFocus() != ::hWnd, ; // Focus is outside
"", ::oGet:buffer ) )
ENDIF
ENDIF
RETURN nilRegards, saludos.
Estimado Maestro, mira:
METHOD DispText() CLASS TGet
if ::lPassword .AND. ::oGet:Type == "C"
if ::IsWideChar
IF Empty( ::GetText() )
// firt time in get from resource
// del:WenSheng: SetWindowText( ::hWnd, Trim( Eval( ::bSetGet ) ) )
::SetText( ::GetText() ) // add:WenSheng:2021.09.22:�����^�R���A�R����̫�@�X��ơA�|���s��ܸ����e�ױK�X�r��
? "¿Entró? 1? " // -> YES, 4 X
ELSE // ALGO ERRADO AQUI
// ::SetText( ::GetText() ) // del:WenSheng: ��n���l�X�A�ˡA�o�ˤ~�|���`!!
SetWindowText( ::hWnd, Trim( Eval( ::bSetGet ) ) ) // add:WenSheng
? "¿Entró? 2? " // Entra en bucle(looping) y nunca sale.
ENDIF
ELSE
SetWindowText( ::hWnd, Replicate( If( IsAppThemed(), Chr( 149 ), "*" ),;
Len( Trim( ::oGet:buffer ) ) ) )
? "¿Entró? 3? " // NO ENTRA NUNCA ???
ENDIF
ELSE
/*
if ::lLimitChars
// ::SetText( Trim( ::GetText() ) )
::SetText( Trim( ::oGet:buffer ) ) // fix 2016-07-07
*/
if ::IsWideChar()
::SetText( If( Empty( ::oGet:buffer ), "", ::oGet:buffer ) )
ELSE
if ::nCase == CASE_PROPER
::oGet:buffer := FW_ProperCase( ::oGet:buffer )
ENDIF
SetWindowText( ::hWnd, If( ! Empty( ::cCueText ) ;
.AND. Empty( ::oGet:VarGet() ) ;
.AND. GetFocus() != ::hWnd, ; // Focus is outside
"", ::oGet:buffer ) )
ENDIF
ENDIF
RETURN nilRegards, saludos.
Up
Birol Betoncu
birol.betoncu@gmail.com
Using Harbour, FWH 26.08, BCC77