Code: Select all
Flags := EF_NONMODAL or EF_IMMEDIATERETURN or EF_DELETEONLYFILEONCLOSE;
if FarApi.Editor(FileName, Title, 0, 0, -1, -1, Flags, 0, 1, CP_UTF8) = EEC_MODIFIED then
if FarApi.EditorControl(-1, ECTL_GETINFO, 0, @EditorInfo) <> 0 then
EditorID := EditorInfo.EditorID;