D4CD_PASSWORD - Gargy007/D4CD GitHub Wiki
D4CD_PASSWORD user defined object is defined to provide password functionality into embedded applications. The password object support variable length of password and three groups of characters that can be used (alphabet, numbers and special chars).
Example:
- (red - pretext, green - password, blue - postText)
Declaration
D4CD_DECLARE_PSWRD(name, preText, postText, x, y, pswdLen, flags, pUser, pOnEnter, pOnUsrMsg)
- name - name of object
- preText - pointer to text that is printed before password
- postText - pointer to text that is printed after password
- x,y - coordination of password object
- pswdLen - password length
- flags - system flags of object
- pUser - user data/pointer
- pOnEnter - pointer on pOnEnter function
- pOnUsrMsg - pointer on user message function
API functions
Function that sets the password value.
void D4CD_PswrdSet(D4CD_OBJECT_PTR pThis, D4CD_PSWRD_VALUE* pValue)
Function returns current value of password.
D4CD_PSWRD_VALUE* D4CD_PswrdGetValue(D4CD_OBJECT_PTR pThis)
Function sets the range of password.
void D4CD_PswrdSetRange(D4CD_OBJECT_PTR pThis, D4CD_BOOL num, D4CD_BOOL chars, D4CD_BOOL special)