Kbase P44640: How To Change The Display Character For PASSWORD-FIELD
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
GOAL:
How To Change The Display Character For PASSWORD-FIELD
GOAL:
In OpenEdge 10 there is a new attribute on the fill-in 'PASSWORD-FIELD' which displays asterisks for each charcter typed by the user however it may be that a different character is required for display.
FACT(s) (Environment):
OpenEdge 10.0A
FIX:
DEFINE VARIABLE FILLIN_A AS CHARACTER FORMAT "X(20)":U
LABEL "FILLIN-A"
VIEW-AS FILL-IN
SIZE 29 BY 1.19 NO-UNDO.
PROCEDURE SendMessageA EXTERNAL "USER32.dll":
DEFINE INPUT PARAMETER hMyWnd AS LONG.
DEFINE INPUT PARAMETER Msg AS LONG.
DEFINE INPUT PARAMETER wPARAM AS LONG.
DEFINE INPUT PARAMETER lParam AS LONG.
DEFINE RETURN PARAMETER w_out AS LONG.
END PROCEDURE.
DEFINE VARIABLE hMyWnd AS INTEGER.
DEFINE VARIABLE Msg AS INTEGER.
DEFINE VARIABLE wPARAM AS INTEGER.
DEFINE VARIABLE lParam AS INTEGER.
DEFINE VARIABLE w_out AS INTEGER.
/*Calling SendMessageA with the following arguments will change the Windows password fill character to ‘;’. You will not see the change take effect until the field in question receives focus. */
hMyWnd = FILLIN_A:HWND IN FRAME DEFAULT-FRAME.
Msg = 204. /* EM_SETPASSWORDCHAR */
wPARAM = 59. /* ascii value of ‘;’ */
lParam = 0. /* not used */
RUN SendMessageA(INPUT hMyWnd, INPUT Msg, INPUT wParam, INPUT wParam, OUTPUT w_out).