I am trying to implement a structured user list system using Lua scripting, ideally following the scenario below:

1) The user selects a command from the Tools menu that launches a Lua script.
2) The Lua script, among other things, displays a user list with editor:UserListShow()
3) The user selects one of the items in the user list.
4) The OnUserListSelection() event handler is called. Depending on the user selection, another user list should be displayed.

The problem is that in step 4, the second user list is not displayed. I suspect that this is caused by the fact that OnUserListSelection() notification has not completed yet. I tried to make the call to the function that displays the second user list from a different event handler (i.e. OnChar()) but it seems that I cannot force another notification from within an event handler.

Any ideas on how to chain two or more user lists?


Thanks,

Marius
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to