Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Menu splitter with Jlink

Pro/Bjarne

New member
Is it possible to add a "splitter" to a menu with Jlink?
By splitter, I mean the horizontal line in eg. the File menu between "backup" and "rename".

I add the menu like this:

//AddMenu
curSession.UIAddMenu("MENUNAME", "Utilities", "MenuFile.txt", null);

//add test button
UICommand cmdTest = curSession.UICreateCommand("Test", new MenuButtonListener(Command.TEST));
curSession.UIAddButton(cmdTest, "MENUNAME", null, "-Test", "-Execute Test", "MenuFile.txt");

//add test button
UICommand cmdTest1 = curSession.UICreateCommand("Test1", new MenuButtonListener(Command.TEST1));
curSession.UIAddButton(cmdTest1, "MENUNAME", null, "-Test1", "-Execute Test1", "MenuFile.txt");



I would like a seperator between the two buttons


Thanks,
\Bjarne
 

Sponsor

Articles From 3DCAD World

Back
Top