FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour GET Y PASSWORD
Posts: 711
Joined: Thu Oct 06, 2005 09:57 PM
GET Y PASSWORD
Posted: Tue Feb 26, 2008 06:44 AM

Cuando uso un GET-PASSWORD desde recursos, cada una de las entradas se sustituyen por un "punto grueso" que queda bonito. En cambio, cuando realizo el mismo GET-PASSWORD desde c贸digo, me sustituye las entradas por "estrellitas".
驴Hay alguna manera que se vean "puntos gruesos" desde c贸digo?

Un saludo



Manuel
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
GET Y PASSWORD
Posted: Tue Feb 26, 2008 07:51 AM

Manuel,

Tienes que usar la fuente Tahoma para ese di谩logo para que se vea igual

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 711
Joined: Thu Oct 06, 2005 09:57 PM
GET Y PASSWORD
Posted: Tue Feb 26, 2008 08:27 AM
Antonio Linares wrote:Manuel,

Tienes que usar la fuente Tahoma para ese di谩logo para que se vea igual


Antonio,

Estoy usando esa fuente, pero me sale la estrellita.
Un saludo



Manuel
Posts: 652
Joined: Wed Oct 19, 2005 12:03 PM
GET Y PASSWORD
Posted: Tue Feb 26, 2008 12:01 PM

Manuel a mi el mismo programa con el get con fuente tahoma en las pc que esta configurado con los themes de xp me aparecen con los puntitos negros y en aquellos que hay win98, millenium, o xp con apariencia win98 me aparecen las estrellitas.

Luis

Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
GET Y PASSWORD
Posted: Tue Feb 26, 2008 12:04 PM
//-> Hola, intente con esta modificacion

//----------------------------------------------------------------------------//
METHOD DispText() CLASS TGet

   if ::lPassword .and. ::oGet:Type == "C"
      #ifdef __CLIPPER__
         SetWindowText( ::hWnd, Replicate( "*", Len( Trim( ::oGet:buffer ) ) ) )
      #else

         /*  //-> Modifiquei em 26/08/2007 - Para Aparecer um * no PASSWORD-WS
         SetWindowText( ::hWnd, Replicate( If( IsAppThemed(), Chr( 149 ), "*" ),;
                                           Len( Trim( ::oGet:buffer ) ) ) )
         */

         SetWindowText( ::hWnd, Replicate( If( IsAppThemed(), Chr(  42 ), "*" ),;
                                           Len( Trim( ::oGet:buffer ) ) ) )
      #endif
   else
      SetWindowText( ::hWnd, ::oGet:buffer )
   endif

return nil
Jo茫o Santos - S茫o Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 711
Joined: Thu Oct 06, 2005 09:57 PM
GET Y PASSWORD
Posted: Wed Feb 27, 2008 06:31 AM
surGom wrote:Manuel a mi el mismo programa con el get con fuente tahoma en las pc que esta configurado con los themes de xp me aparecen con los puntitos negros y en aquellos que hay win98, millenium, o xp con apariencia win98 me aparecen las estrellitas.


Ese es el problema. Sistema XP con apariencia win98.

La soluci贸n ha sido la aportada por Karinha (modificar TGet), pero cambiando la estrellita por chr(149) tambien:

METHOD DispText() CLASS TGet

if ::lPassword .and. ::Type == "C"
#ifdef __CLIPPER__
SetWindowText( ::hWnd, Replicate( "*", Len( Trim ( ::buffer ) ) ) )
#else

SetWindowText( ::hWnd, Replicate( If( IsAppThemed(), Chr( 149 ), CHR ( 149 ) ),;
Len( Trim( ::buffer ) ) ) )
#endif
else
SetWindowText( ::hWnd, ::buffer )
endif

return nil
Un saludo



Manuel
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
GET Y PASSWORD
Posted: Wed Feb 27, 2008 04:06 PM
Manuel Valdenebro wrote:
surGom wrote:Manuel a mi el mismo programa con el get con fuente tahoma en las pc que esta configurado con los themes de xp me aparecen con los puntitos negros y en aquellos que hay win98, millenium, o xp con apariencia win98 me aparecen las estrellitas.


Ese es el problema. Sistema XP con apariencia win98.

La soluci贸n ha sido la aportada por Karinha (modificar TGet), pero cambiando la estrellita por chr(149) tambien:

METHOD DispText() CLASS TGet

if ::lPassword .and. ::Type == "C"
#ifdef __CLIPPER__
SetWindowText( ::hWnd, Replicate( "*", Len( Trim ( ::buffer ) ) ) )
#else

SetWindowText( ::hWnd, Replicate( If( IsAppThemed(), Chr( 149 ), CHR ( 149 ) ),;
Len( Trim( ::buffer ) ) ) )
#endif
else
SetWindowText( ::hWnd, ::buffer )
endif

return nil


EXCELENTE MANUEL. MUI BUENA IDEA. Gracias.
Jo茫o Santos - S茫o Paulo - Brasil - Phone: +55(11)95150-7341

Continue the discussion