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"
best regards
Uwe