Hello,
I have this scenario: in ADE-XL, after I load an old result to active, if I select the results tab and right click on a result, I have a nice menu with many options.
I would like to add an item to this menu. From what I read on this forum, I added this code to menus/spectre.menus
(sevAddMenuItemLists
(lambda (session name)
(case name
("&Results" list( (list "TestItem" ?disable nil ?form t ?callback "(testfunc session)") ) )
);case
) ; lambda
) ; sevAddMenuItemLists
(procedure (testfunc s) (println (sprintf nil "Simdir is %s" s->axlCurrentDataDir)) )
but, when I right click, I get this message in CIW:
ERROR (ADEXL-2822): Invalid menu list structure "(false false)" provided.
Menu items must be specified as a list of ("menu name" "callback" {"true", "false"}), where the last argument specifies whether the item is disabled.
For submenus, replace the callback string with a sublist of menu items.
and nothing gets printed
What is the correct way to achieve this? I need to be able to access the "session" variable inside my callback
Best regards,
Patrik