mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: Lua - Dialogs.InputListBox will also return the index of selected item. (#1440)
This commit is contained in:
parent
9c7051bb86
commit
cc11730617
1 changed files with 5 additions and 1 deletions
|
|
@ -543,7 +543,11 @@ begin
|
|||
AValue:= lua_tostring(L, 4);
|
||||
end;
|
||||
if ShowInputListBox(ACaption, APrompt, AStringList, AValue, AIndex) then
|
||||
lua_pushstring(L, AValue)
|
||||
begin
|
||||
Result:= 2;
|
||||
lua_pushstring(L, AValue);
|
||||
lua_pushinteger(L, AIndex + 1);
|
||||
end
|
||||
else begin
|
||||
lua_pushnil(L);
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue