struct FarDialogItem
{
int Type = DI_PSWEDIT
int X1 = X1
int Y1 = Y
int X2 = X2
int Y2 = Y (equals to Y1)
int Focus = Focus
int Selected = 0
DWORD Flags = Flags
int DefaultButton = DefaultButton
char Data[512] = the text for editing
};
Attention!
| Flag | Description |
|---|---|
| DIF_DISABLE | Disables user access to the password control. |
| DIF_READONLY | Sets read-only state for the password control. |
| DIF_SELECTONENTRY | Makes the password control always select the text when it receives focus. |
| DIF_NOFOCUS | The dialog item cannot receive keyboard focus, but can handle other user events. |
| Event | Description |
|---|---|
| DN_DRAWDLGITEM | This event is sent to the dialog callback function just before the password box is drawn. |
| DN_CTLCOLORDLGITEM | Plugin should pass the color attributes of the password control when this event comes. Param2 parameter:
LoWord LoByte - color of the text
(COL_WARNDIALOGEDIT or
COL_DIALOGEDIT)
LoWord HiByte - color of selected text
(COL_DIALOGEDITSELECTED)
HiWord LoByte - color of unchanged text
(COL_DIALOGEDITUNCHANGED)
HiWord HiByte - 0 (not used)
|
| DN_KEY | This event comes after the user has pressed a key in the dialog. |
| DN_MOUSECLICK | This event comes after the user has clicked one of the dialog items or outside the dialog with the mouse button. |
| DN_EDITCHANGE | The text in the password field was changed. |
| DN_KILLFOCUS | This event is sent before the password control loses focus, if the flag DIF_NOFOCUS was not used. |
| DN_GOTFOCUS | This event is sent after the password control receives keyboard focus, if the flag DIF_NOFOCUS was not used. |
The DI_PSWEDIT control doesn't allow copying password text to the clipboard.