DCGET ... PASSWORD suggestion

This forum is for eXpress++ general support.
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCGET ... PASSWORD suggestion

#11 Post by rdonnay »

Here is an updated _DCXBPGT.PRG and DCDIALOG.CH.

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
Attachments
password.zip
(60.37 KiB) Downloaded 585 times
The eXpress train is coming - and it has more cars.

Post Reply