It might sound a silly problem, but for some unknown reasons I can add buttons to existing menus only as the first button. If I add a button and define the neighbour of the requested button, I do not get anything.
Anybody has a snippet of J-Link code that includes adding a button into a certain position in an existing menu, so that I can find what I am doing wrong?
Thank you in advance
To get the correct name of the neighbor button, set the config.pro option 'cmdmgr_trail_output' to 'no'. This allows button names to be captured in the trail file.
This exampleadds a "Print PDF" buttonabove the "Drawing Options" button in the "File" menu:
curSession.UIAddButton (cmd, "File", "DetailFile.psh_draw_options", "Print PDF",
"Print the current drawing in PDF", "msg_createpdf.txt");