Skip to content
Permalink
Browse files

luamacro: у DN_GOTFOCUS и DN_KILLFOCUS Param1 = -1, если они приходят…

… при получении или потере диалогом фокуса.

энциклопедия.
  • Loading branch information...
zg0 committed Oct 13, 2017
1 parent 4e1bcd1 commit 38919e51113d9cb73073efb303b174dba8636c29
@@ -20,7 +20,10 @@ <h1>DN_GOTFOCUS</h1>

<h3>Param1</h3>
<div class=descr>
ID ýëåìåíòà ïîëó÷èâøåãî ôîêóñ ââîäà.
<ul>
<li>ID ýëåìåíòà ïîëó÷èâøåãî ôîêóñ ââîäà.</li>
<li><code>-1</code> — åñëè íåìîäàëüíûé äèàëîã ïîëó÷èë ôîêóñ.</li>
</ul>
</div>

<h3>Param2</h3>
@@ -21,7 +21,10 @@ <h1>DN_KILLFOCUS</h1>

<h3>Param1</h3>
<div class=descr>
ID ýëåìåíòà äèàëîãà, òåðÿþùåãî ôîêóñ ââîäà.
<ul>
<li>ID ýëåìåíòà äèàëîãà, òåðÿþùåãî ôîêóñ ââîäà.</li>
<li><code>-1</code> — åñëè íåìîäàëüíûé äèàëîã òåðÿåò ôîêóñ.  ýòîì ñëó÷àå âîçâðàùàåìîå çíà÷åíèå èãíîðèðóåòñÿ.</li>
</ul>
</div>

<h3>Param2</h3>
@@ -61,14 +61,16 @@ <h3>
<tr class="cont"><td class="cont" width="40%"><a name="FDLG_WARNING">FDLG_WARNING</a></td>
<td class="cont" width="60%">Çŕäŕ¸ň äë˙ äčŕëîăŕ öâĺňîâóţ ńőĺěó "Ďđĺäóďđĺćäĺíčĺ".</td></tr>
<tr class="cont"><td class="cont" width="40%"><a name="FDLG_SMALLDIALOG">FDLG_SMALLDIALOG</a></td>
<td class="cont" width="60%">Ďîçâîë˙ĺň ńîçäŕâŕňü äčŕëîăč ń óěĺíüřĺííűě đŕçěĺđîě đŕěęč. Äë˙ ňŕęčő äčŕëîăîâ ďđč îňđčńîâęĺ đŕçäĺëčňĺëüíűő ëčíčé (<code>DIF_SEPARATOR</code>) ďđĺäďîëŕăŕĺňń˙
<td class="cont" width="60%">Ďîçâîë˙ĺň ńîçäŕâŕňü äčŕëîăč ń óěĺíüřĺííűě đŕçěĺđîě đŕěęč. Äë˙ ňŕęčő äčŕëîăîâ ďđč îňđčńîâęĺ đŕçäĺëčňĺëüíűő ëčíčé (<code>DIF_SEPARATOR</code>) ďđĺäďîëŕăŕĺňń˙
íóëĺâîé îňńňóď ěĺćäó ăđŕíčöĺé äčŕëîăŕ č îęđóćŕţůĺé ĺăî äâîéíîé đŕěęîé.</td></tr>
<tr class="cont"><td class="cont" width="40%"><a name="FDLG_NODRAWSHADOW">FDLG_NODRAWSHADOW</a></td>
<td class="cont" width="60%">Íĺ đčńîâŕňü ňĺíü äčŕëîăŕ.</td></tr>
<tr class="cont"><td class="cont" width="40%"><a name="FDLG_NODRAWPANEL">FDLG_NODRAWPANEL</a></td>
<td class="cont" width="60%">Íĺ đčńîâŕňü ďîëĺ äčŕëîăŕ.</td></tr>
<tr class="cont"><td class="cont" width="40%"><a name="FDLG_KEEPCONSOLETITLE">FDLG_KEEPCONSOLETITLE</a></td>
<td class="cont" width="60%">Îňęëţ÷čňü óńňŕíîâęó çŕăîëîâęŕ ęîíńîëč Far Manager ďî çŕăîëîâęó äčŕëîăŕ.</td></tr>
<tr class="cont"><td class="cont" width="40%"><a name="FDLG_KEEPCONSOLETITLE">FDLG_NONMODAL</a></td>
<td class="cont" width="60%">Ńîçäŕňü íĺěîäŕëüíűé äčŕëîă. Äčŕëîă îňîáđŕćŕĺňń˙ ńđŕçó č ńŕě îńâîáîćäŕĺňń˙ ďđč çŕęđűňčč. Âűçűâŕňü DialogRun č DialogFree äë˙ ňŕęîăî äčŕëîăŕ íĺ íóćíî.</td></tr>
<tr class="cont"><td class="cont" width="40%"><a name="FDLG_NONE">FDLG_NONE</a></td>
<td class="cont" width="60%">Íóëĺâîé ôëŕă.</td></tr>
</table>
@@ -30,6 +30,7 @@ <h1>MacroAddMacro</h1>
INPUT_RECORD AKey;
enum FARMACROAREA Area;
FARMACROCALLBACK Callback;
intptr_t Priority;
};
</pre>

@@ -81,6 +82,8 @@ <h3>
Ãäå: <code>Id</code> - èäåíòèôèêàòîð (<code>MacroAddMacro.Id</code>). <code>Flags</code> - ñåé÷àñ íå èñïîëüçóþòñÿ.<br>
Ôóíêöèÿ ìîæåò ÷òî-òî ïðîâåðèòü è âåðíóòü <code>TRUE</code> - çàïóñòèòü ìàêðîñ, èëè <code>FALSE</code> - íå çàïóñêàòü.
</div>
<div class=dfn>Priority</div>
<div class=dfndescr>Ïðèîðèòåò ìàêðîñà.</div>
</div>

<h3>Çàìå÷àíèÿ</h3>
@@ -1,6 +1,6 @@
function export.GetGlobalInfo()
return {
Version = { 1, 0, 0, 623 },
Version = { 1, 0, 0, 624 },
MinFarVersion = { 3, 0, 0, 5063 },
Guid = win.Uuid("4EBBEFC8-2084-4B7F-94C0-692CE136894D"),
Title = "LuaMacro",
@@ -1,4 +1,8 @@
shmuel 13.10.2017 11:40:50 +0200 - build 623
zg 13.10.2017 13:36:39 +0300 - build 624

1. у DN_GOTFOCUS и DN_KILLFOCUS Param1 = -1, если они приходят при получении или потере диалогом фокуса.

shmuel 13.10.2017 11:40:50 +0200 - build 623

1. LuaFAR: minor refactoring.

@@ -3469,6 +3469,8 @@ int PushDNParams (lua_State *L, intptr_t Msg, intptr_t Param1, void *Param2)

case DN_CLOSE:
case DN_CONTROLINPUT:
case DN_GOTFOCUS:
case DN_KILLFOCUS:
if (Param1 >= 0)
++Param1;
break;
@@ -3481,11 +3483,9 @@ int PushDNParams (lua_State *L, intptr_t Msg, intptr_t Param1, void *Param2)
case DN_DROPDOWNOPENED:
case DN_EDITCHANGE:
case DN_GETVALUE:
case DN_GOTFOCUS:
case DN_HELP:
case DN_HOTKEY:
case DN_INITDIALOG:
case DN_KILLFOCUS:
case DN_LISTCHANGE:
case DN_LISTHOTKEY:
++Param1; // dialog element position
@@ -1,6 +1,6 @@
#include <farversion.hpp>

#define PLUGIN_BUILD 623
#define PLUGIN_BUILD 624
#define PLUGIN_DESC "Lua Macros for Far Manager"
#define PLUGIN_NAME "LuaMacro"
#define PLUGIN_FILENAME "luamacro.dll"

0 comments on commit 38919e5

Please sign in to comment.
You can’t perform that action at this time.