I used the below sample to test this new feature.
Copy _DCXBPGT.PRG to ..\source\dclipx and DCDIALOG.CH to ..\include
Rebuild DCLIPX.DLL by running ..\source\dclipx\BUILD19_SL1.BAT or ..\source\dclipx\BUILD20.BAT.
I found and fixed a bug that caused the GET buffer to be truncated to the length of the Password buffer after the GET regained focus. This prevented characters to be added to the password. This apparently has been a bug for a long time.
It showed up during the debugging process.
Code: Select all
#INCLUDE "dcdialog.CH"
FUNCTION Main()
LOCAL GetList[0], cPass1 := Space(30), cPass2 := Space(30), cPass3 := Space(30)
@ 0,0 DCSAY 'Password 1' GET cPass1 SAYBOTTOM
@ 1,0 DCSAY 'Password 2' GET cPass2 PASSWORD SHOWLASTCHAR SAYBOTTOM
@ 2,0 DCSAY 'Password 3' SAYBOTTOM
@ DCGUI_ROW, DCGUI_COL + 10 DCGET cPass3 PASSWORD
DCREAD GUI FIT TITLE 'Password Test'
RETURN nil
* ---------
PROC appsys ; RETURN