Show a Get-password with image-display ?

Show a Get-password with image-display ?

Postby ukoenig » Mon Mar 02, 2015 11:43 pm

Hello,
I found a password-get-solution in the spanish forum,
but there is nothing visible. Maybe not working ?
I would like to include it in my new METRO-app
As well I tested the login, to center everything horizontal on screen,
but the calculation doesn't work
For the moment, I'm using fixed values

needed for the calculation using ScreenWidth() :

hDC := oDlg:GetDC()
nWidth1 := GetTextWidth( hDC, "Bitte Zugangsdaten eingeben", oFont1 )
nWidth2 := GetTextWidth( hDC, "Benutzername-Name :", oFont2 )
ReleaseDC( hDC)


for the Buttons ( works ) :

@ 130, ScreenWidth() / 2 - 320 FLATBTN oBtn1 PROMPT "Bearbeiten" ;
SIZE 60, 20 ACTION LOGIN() FONT oFont2
@ 130, ScreenWidth() / 2 - 250 FLATBTN oBtn3 PROMPT "Abbruch" ;
SIZE 60, 20 ACTION ( lOK := .F., oDlg:End() ) FONT oFont2


The original password-solution posted from Euclides

@ 2, 2 GET oGet VAR cPassword OF oDlg PASSWORD ;
ACTION (oGet:lPassword:= !oGet:lPassword, oGet:Refresh()) ;
BITMAP "..\bitmaps\eye20.bmp"


Image

best regards
Uwe :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Show a Get-password with image-display ?

Postby ukoenig » Wed Mar 04, 2015 2:54 pm

Any idea using stars or anything else, to make a input visible ?

Image

best regards
Uwe :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 51 guests