2016-07-10, 15:02
Once list item is chosen, I would like to open window and send some parameters. How should I do it?
The following code works:
The question is about parameters. In C++ it looks like below:
How should I do the same in my addon? Looks like Control.Message could help, but I don't understand how to (1) pass both command to addContextMenuItems, (2) pass additional parameters (m_Lyrics) to newSong command.
The following code works:
Code:
listitem.addContextMenuItems([ ('Test', 'ActivateWindow(Karaoke)')])
Code:
window->newSong( m_Lyrics );