DIF_HISTORY flag allows to keep a history list for edit controls. When this flag is set, the History field must contain the address of a text string that will be used as the internal history name. If several edit controls have the same history name, they will share the same history list. For the following example (ARCPROC.CPP file from MultiArc):
const char *PathHistoryName="ExtrDestPath";
struct InitDialogItem InitItems[]={
...
DI_EDIT,5,3,70,3,1,(DWORD)PathHistoryName,DIF_HISTORY,0,DestPath,
...
};
the history will be stored in the registry (under
HKCU\Software\Far\SavedDialogHistory\ExtrDestPath key), one line (key
names look like "Line<number>", of REG_SZ type) for each value entered by the user.
Kyes with names looking like "Locked<number>" (REG_DWORD) are intended for marking
lines that cannot be deleted (while in the list, this state can be changed with the <Insert>
key).
The DIF_HISTORY flag is applicable to the following dialog items:
| Control | Description |
|---|---|
| DI_EDIT | Edit box. |
| DI_FIXEDIT | Fixed size edit box. |
| name | purpose |
|---|---|
| "SearchText" | search edit box |
| "ReplaceText" | replace edit box |
| "PersPath" | personal plugins' paths |
| "Copy" | destination edit box in copy dialog |
| "LineNumber" | editor goto (Alt-F8) |
| "ViewerOffset" | viewer goto (Alt-F8) |
| "NewEdit" | edited files (Shift-F4/Shift-F2) |
| "Masks" | file masks (selection, associations, filters, file search) |
| "UserVarN" | user variables |
| "ApplyCmd" | "apply command" (Ctrl-G) |
| "DizText" | file description edit box |
| "NewFolder" | folder creation |