Hi,
I've a problem with making a menu system with lua.
The code is working nicely under Scite 1.62 but something was changed
since v1.63 and then this is not work.
Here is the code :
------------------------------------------
function UserListShow(list)
local s = ''
local sep = ';'
local n = table.getn(list)
for i = 1,n-1 do
s = s..list[i]..sep
end
s = s..list[n]
editor.AutoCSeparator = string.byte(sep)
editor:UserListShow(12,s)
editor.AutoCSeparator = string.byte(' ')
end
function list_first()
UserListShow({'a','b','c'}) --first list
end
function OnUserListSelection(tp,script)
if tp == 12 then
if script=="b" then
UserListShow({'1','2','3'}) --second list
end
end
end
------------------------------------------
And this is for user properties file:
command.name.1.*=Show List
command.subsystem.1.*=3
command.save.before.1.*=2
command.1.*=list_first
When I press Ctrl+1 the first list appear. When I select "b" from
list and press enter then the second list appear but only for a very
short time and then dissapear. What I am doing wrong?
As I said the code is OK for 1.62
I've tried the latest version and unfortunatelly does not work.
Can anybody help me?
Thank you!
---
Best Regards,
Istvan
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest